很简单的原因,printf("this is a c program.\n");包含头的英文写错了是includevoid 改为int ,在语句的最后添加return 0;就可以了。如:(复制粘贴就可以搞掂了)#include intmain(){ printf("this is a c program.\n");return 0;}...
#includ 少了个e应该是#include printf("this is a c program.\n"少);应该是printf("this is a program.\n");在C++中规定main主函数的返回值必须是int型不能为void,所以要在后面加上return 1;下面是我的代码:#include /*注意include拼写*/int main(void) /*这事标准写法,但是 void main()也是可以运行的*/{printf(" this is a c program.\n");/*分号结束*/} 估计是你软件原因了...