#5780: 我的執行結果都跟題目一樣 為什麼這樣過不了


a222333l (JJ)


#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
    int a,b;
    while(cin>>a>>b)
    cout<<a+b<<endl;
    system("pause");
    return 0;
}

我記得以前有C++可以點      可是現在就沒有了     所以我選C      是因為這個問題嗎

#5794: Re:我的執行結果都跟題目一樣 為什麼這樣過不了


chan3015 (月)


#include
#include
using namespace std;
int main()
{
    int a,b;
    while(cin>>a>>b)
    cout<    system("pause");
    return 0;
}

我記得以前有C++可以點      可是現在就沒有了     所以我選C      是因為這個問題嗎

system("pause"); 這一行拿掉 試試看