关于C语言输出文字

来源:百度知道 编辑:UC知道 时间:2024/07/05 05:43:45
#include <stdio.h>
void main()
{
printf("very good!");
}
为什么编译软件会说出现2处错误
第一个是第一行:unknown preprocessor directive:'inculde'
第二个是第四行:function 'printf'should have a prototype

请高手指点啊~~我是初学者!!迷茫啊!~搞定后加分!~
我的运行环境是Turbo C++
那可以教我怎么配置环境吗??

1 环境没有配置好,stdio.h这个文件没有导入成功
2 分号改下就行了。

printf("very good!");
最后那个分号错误了,C语言中的分号不能是中文状态的符号,输入的时候一定切换输入法到英文状态,因为英文状态的符号和中文状态下是不一样的。
#include <stdio.h>
void main()
{
printf("very good!");
}
这样就对了。

"inculde" 跟"include "的区别。。。改过来就可以运行了,再不然的话程序改为
#include <stdio.h>
int main()
{
printf("very good!");
return 0;
}
复制过去,再不能运行我就真的无语了,只能跟你说——换个编绎器试试

c语言非常好啊,我都发生兴趣了。

1、unknown preprocessor directive:'inculde'
是说你 include 写错了 拼成了 inculde

2、function 'printf'should have a prototype
因为编译器没正确导入stdio.h 所以认不出函数"printf"