页:
[1]
|
visual c ++ 6.0 运行程序的问题!急啊!
我用visual c ++ 6.0 编写了一个简单的4.CPP文件,源码如下,运行程序只能是点击编译后的4.EXE, (运行正常)
如果是 使用visual c ++ 6.0 中build ----Execute 4.exe,屏幕没何任反映.是不是设置上有问题.
请问怎样才能在visual c ++ 6.0 中直接调式运行程序.
#include <iostream.h>
#include <conio.h>
int main()
{
int a, b, c;
cout << "enter frtst a=:\n";
cin >> a;
cout << "enter second b=:\n";
cin >> b;
c=a+b;
cout <<"c is " << c <<endl;
getch();
return 0;
} |
| elong21 | 2005-5-22 01:58 PM |
|
运行没有问题
代码我已经在VC6.0,WindowsXP下运行,没有问题!结果如下
enter frtst a=:
a
enter second b=:
c is -858993460
Press any key to continue
我想是你的VC设置问题!程序没有问题! |
Powered by Discuz! Archiver 6.1.0
© 2001-2006 Comsenz Inc.
Processed in 0.005826 second(s), 2 queries |