我写了这个程序:
#include<stdio.h>
int main()
{
printf(“Hello World\n”);
return 0;
}
我将其另存为first.c
并尝试编译,但收到此问题后,我也安装了gcc编译器。
$ gcc first.c -o first1
first.c: In function ‘main’:
first.c:4:1: error: stray ‘\342’ in program
first.c:4:1: error: stray ‘\200’ in program
first.c:4:1: error: stray ‘\234’ in program
first.c:4:11: error: ‘Hello’ undeclared (first use in this function)
first.c:4:11: note: each undeclared identifier is reported only once for each function
it appears in
first.c:4:17: error: expected ‘)’ before ‘World’
first.c:4:17: error: stray ‘\’ in program
first.c:4:17: error: stray ‘\342’ in program
first.c:4:17: error: stray ‘\200’ in program
first.c:4:17: error: stray ‘\235’ in program
我该如何解决这个问题?
您是否从其他文字处理程序或文档(如Libre office或Microsoft Word)复制了该程序?
—
Jobin