#9216: WA (line:1) 輸出短少


a55046535 (hom)


#include<iostream>
using namespace std;
int main()
{
  int a,b,c,total,d;
  total=0;
  cin >> d;
  if(d >= 1 && d <= 4){
       for (int i=0; i < d ; i++){
           cin >> a >> b >> c;
               if(a == 1){
                   total = b+c;
                         cout << total;
                  }else if(a == 2){
                        total = b-c;
                        cout << total; 
                  }else if(a == 3){
                        total = b*c;
                        cout << total;
                  }else{
                        total = b/c;
                        cout << total;
                  }
                  cout <<endl ;
               }
           }

  //system("pause");
  return 0;
 }
 
各位大大,我想請問一下
輸出短少是甚麼意思?? 
#9218: Re:WA (line:1) 輸出短少


anandrewboy70900 (ShowTsai)


要重複輸入喔~

while(cin >> d)

{

}