求大神分析一下运算结果是怎么来的
#include<iostream>using namespace std;
int main()
{
int a,b,c;
c=a+b;
cout<<"a+b="<<a+b;
system("pause");
return 0;
}
a的ASCII码是97,b的ASCII码是98,可运算结果却为a+b=1990696314
求大神分析一下运算结果是怎么来的??
2011-11-03 17:17
2011-11-03 17:53
2011-11-03 17:56
2011-11-03 20:58
程序代码:#include<iostream>
using namespace std;
int main()
{
int c,a,b;
a='a';
b='b';
c='a'+'b';
cout<<"a+b="<<a+b;
system("pause");
return 0;
}
2011-11-04 17:58