#694: 簡易加法的一些問題


z10218 (語風)


#include <iostream>
using namespace std;

int main() {
   
   
    int a,b;
    
     cin >> a >> b;
   
    while (cout << a+b << endl)          
   
   
    system("pause")
    return 0;
}

 

請問一下這裡是哪已出錯誤了

他顯示ce耶

但是我在dev-c++上面可以執行

也可以運算出來

為甚麼會不行呢

#711: Re:簡易加法的一些問題


hinet60613 (呆維)


#include <iostream>
using namespace std;

int main() {
    
    
    int a,b;
     
     cin >> a >> b;
    
    while (cout << a+b << endl)           
    
    
    system("pause")
    return 0;
}

請問一下這裡是哪已出錯誤了

他顯示ce耶

但是我在dev-c++上面可以執行

也可以運算出來

為甚麼會不行呢

system("pause")後面少一個分號

= =||