ACM1089:A+B for Input-Output Practice (I)

用字符串截取转整形,总是不能AC哭


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


你可能感兴趣的:(ACM1089:A+B for Input-Output Practice (I))