[求助]如果是输入字母为什么不能输入第二个数,而且会出现"sum is -858993460"?
#include<iostream.h>int main()
{
int n1,n2,sum;
cout << "enter the first interger\n";
cin>>n1;
cout<<"enter the second interger\n";
cin>>n2;
sum=n1+n2;
cout<<"sum is "<<sum<<endl;
return 0;
}
//如果是输入字母为什么不能输入第二个数,而且会出现"sum is -858993460"?
我是新人,还请多多提携,不吝赐教