运行vc++6.0出现hello.obj - 1 error(s), 0 warning(s)

我是按照下面的步骤一点一点做的程序代码(抄peterl.jones的21填学通c语言)结果按了控制+F7后出现--------------------Configurat... 我是按照下面的步骤一点一点做的

程序代码(抄peter l .jones的21填学通c语言)
结果按了控制+F7后出现
--------------------Configuration: hello1 - Win32 Debug--------------------
Compiling...
hello.c
c:\program files\microsoft visual studio\myprojects\hello\hello1\hello.c(5) : error C2065: 'hello' : undeclared identifier
c:\program files\microsoft visual studio\myprojects\hello\hello1\hello.c(5) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
c:\program files\microsoft visual studio\myprojects\hello\hello1\hello.c(5) : warning C4024: 'printf' : different types for formal and actual parameter 1
c:\program files\microsoft visual studio\myprojects\hello\hello1\hello.c(5) : error C2065: 'world' : undeclared identifier
c:\program files\microsoft visual studio\myprojects\hello\hello1\hello.c(5) : error C2143: syntax error : missing ')' before '!'
c:\program files\microsoft visual studio\myprojects\hello\hello1\hello.c(5) : error C2017: illegal escape sequence
c:\program files\microsoft visual studio\myprojects\hello\hello1\hello.c(5) : error C2001: newline in constant
执行 cl.exe 时出错.

hello.obj - 1 error(s), 0 warning(s)
展开
 我来答
敏澎Q1
2013-07-05 · TA获得超过991个赞
知道小有建树答主
回答量:944
采纳率:0%
帮助的人:751万
展开全部
下面这句你改一下:

printf("hello world!\n");

你少了个“
更多追问追答
追问
改了,然后出现
-------------------Configuration: hello1 - Win32 Debug--------------------
Compiling...
hello.c

hello.obj - 0 error(s), 0 warning(s)
追答
OK 了,表示你的编译是通过了,祝贺。
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
小兆86
2013-07-05 · TA获得超过802个赞
知道小有建树答主
回答量:990
采纳率:25%
帮助的人:857万
展开全部
里面的两个分号用错了,改成英文状态重新输入一遍。
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
锨氨窝0
2013-07-06
知道答主
回答量:12
采纳率:0%
帮助的人:7.9万
展开全部
printf();中是一个字符串,要用引号。也就是你的这么改:printf("hello world\n");
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
小七说LoRa
2013-07-05 · TA获得超过461个赞
知道小有建树答主
回答量:433
采纳率:0%
帮助的人:229万
展开全部
ctrl+F5就可以运行自己的程序了,你工程建立对着呢,就是控制台程序。
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(2)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式