visual c++ 问题 运行程序总是出错

zhou00069 2008-04-29 04:35:30
在Win TC中运行成功的C语言程序,在visual c++6.0就出错
如下面的简单程序:

#include<stdio.h>
void main()
{
int a,b;
a=2;b=3;
printf("%d",a+b);
getch();
}

编译后会出现如下提示:

--------------------Configuration: H1 - Win32 Debug--------------------
Compiling...
Error spawning cl.exe

H1.exe - 1 error(s), 0 warning(s)

我用的时vista系统,是不是软件与系统不支持?

希望熟悉VC的高手指点下,我用VC只是用来运行C++程序!
...全文
186 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
n27741 2008-04-29
  • 打赏
  • 举报
回复

#include <stdio.h>
#include <conio.h>

void main()
{
int a,b;
a=2;b=3;
printf("%d",a+b);
getch();
}

//为啥 帖代码 这个功能不支持在firefox上使用?!!


n27741 2008-04-29
  • 打赏
  • 举报
回复
#include <stdio.h>
#include <conio.h>

void main()
{
int a,b;
a=2;b=3;
printf("%d",a+b);
getch();
}

编译通过 borland c++ builder 60

zhou00069 2008-04-29
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 ydlchina 的回复:]
#include <conio.h>
[/Quote]

不行啊!
ydlchina 2008-04-29
  • 打赏
  • 举报
回复
#include <conio.h>

13,871

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧