我在看《c语言程序设计 第二版》时,
- C/C++ code
#include <stdio.h> int main(void) { printf("Hello,world!\n "); return 0; }
这样的代码是错误的,我以前也在vc6里试过了 提示报错,现在我的系统换了win7,vc6不兼容,改用c-free4.0,但编译后提示 完成构建 test: 0 个错误, 0 个警告 。请高手解疑啊啊啊啊啊啊啊啊啊啊啊啊啊啊!!
------解决方案--------------------
------解决方案--------------------
#include <stdio.h>
int main(void)
{
printf("Hello,world!\n ");
return 0;
}
这样就好了,我的是C-free5.0 这个编译器编译时预处理操作可能跟别的不一样。C-free写小程序还行,要是写工程还是不建议用。