注意多组数据输入与输出 代码如下 #include <iostream> using namespace std; int main() { int a,b; while(cin>>a>>b) { cout<<a+b<<endl; } return 0; }