J'ai écrit ce programme:
#include<stdio.h>
int main()
{
printf(“Hello World\n”);
return 0;
}
Je l'ai enregistré sous first.c
et j'ai essayé de compiler, mais en recevant ce problème, j'ai également installé le compilateur 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
Comment puis-je résoudre ce problème?