JBTALKS.CC

标题: 写程序遇到的问题 [打印本页]

作者: crazy_91    时间: 2010-3-8 06:47 PM
标题: 写程序遇到的问题
#include <stdio.h>

int main()
{
                printf("Hello, World!\n");

                return 0;
}

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

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


为什么会这样的??
我是照着写的。。
我用的是microsoft visual C++
.cpp 格式。。。
是不是我的格式放错??

*补充*
不管我照抄什么code都出现以下的。。

Compiling...
Error spawning cl.exe

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

[ 本帖最后由 crazy_91 于 2010-3-8 06:50 PM 编辑 ]
作者: 宅男-兜着走    时间: 2010-3-8 08:29 PM
标题: 回复 #1 crazy_91 的帖子
select console project.

作者: crazy_91    时间: 2010-3-12 03:50 PM
标题: 回复 #2 宅男-兜着走 的帖子
我用的是 Microsoft Visual Studio 旧的版本。。


[ 本帖最后由 crazy_91 于 2010-3-12 03:52 PM 编辑 ]
作者: 宅男-兜着走    时间: 2010-3-12 03:54 PM
标题: 回复 #3 crazy_91 的帖子

  1. #include <stdio.h>

  2. int main()
  3. {
  4.                 printf("Hello, World!\n");
复制代码


你这个我印象中是 Console program 来的。 你Open new Console project来先。
VC Studio 是不关事的。
作者: Super-Tomato    时间: 2010-3-12 08:35 PM
原帖由 crazy_91 于 2010-3-8 06:47 PM 发表
#include

int main()
{
                printf("Hello, World!\n");

                return 0;
}

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

Cpp ...


編程軟體安裝上的問題吧, 重新安裝或去檢查你的編譯器設定




欢迎光临 JBTALKS.CC (https://jbtalks.my/) Powered by Discuz! X2.5