
hello world文件
#include <stdio.h>
int main(void)
{
printf("Hello, world!\n");
return 0;
}
然后保存到hello.c
再gcc hello.c
结果就出现了
hello.c:30:1: 错误: expected identifier or ‘(’ before numeric constant
太奇怪了。
请帮助,谢谢
难道是我的ubuntu的问题?mjp123 写了:吧你的代码复制过来。没有任何问题。
代码: 全选
#include<stdio.h>
int main(void){
printf("Hello, world!\n");
return 0;
}