C++ 最后一个 cout 问题

来源:百度知道 编辑:UC知道 时间:2024/06/02 18:00:52
自己写的程序:

#include <iostream.h>
void main()
{
int a,b;
int sum=0;
cout<<"请输入一个整数a:";
cin>>a;
cout<<endl;

cout<<"请输入一个整数b:";
cin>>b;
cout<<endl;

sum = a+b;
cout<<"总和为:"<<sum<<endl;
}

下面报的异常:

Loaded 'ntdll.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.
The thread 0x1EC has exited with code 4391144 (0x4300E8).
The program 'D:\VC++\win\Debug\win.exe' has exited with code 4391144 (0x4300E8).

问题:最后一个cout没有打印出来!
高手指教!!
急!急!急!!!!

你的编译器的问题,来这下一个吧:http://www.rayfile.com/files/78dbabe8-ad42-11dd-a892-0019d11a795f/
绝对能用,序列号全是1.

在我电脑上运行很好啊,没错误啊,估计你的软件有点问题吧,重装一下软件

你的vc++有问题,这个程序可以正常执行,你可以在网上重新下载一个完整版的vc,重新安装,可能就好了

可能是你的开发软件除了问题吧,我的都能运行

#include <iostream>
using namespace std;
void main()
{
int a,b,sum=0;
cout<<"请输入一个整数a:";
cin>>a;
cout<<endl;
cout<<"请输入一个整数b:";
cin>>b;
cout<<endl;
sum = a+b;
cout<<"总和为:"<<sum<<endl;
}

我运行了一下,我运行好这里 ,额可能是你的编译环境的问题!!!!!!!