分页: 1 / 1

为什么会这样求解释?????

发表于 : 2016-04-03 15:17
liaozc
liaozhaocong@ubuntu:~$ gcc -S hello.i -o hello.s
hello.c: In function ‘main’:
hello.c:4:10: error: stray ‘\357’ in program
printf("Hello!this is our embedded world!\n ");
^
hello.c:4:10: error: stray ‘\274’ in program
hello.c:4:10: error: stray ‘\210’ in program
hello.c:4:19: error: expected ‘;’ before string constant
printf("Hello!this is our embedded world!\n ");
^
hello.c:4:19: error: stray ‘\357’ in program
hello.c:4:19: error: stray ‘\274’ in program
hello.c:4:19: error: stray ‘\211’ in program

Re: 为什么会这样求解释?????

发表于 : 2016-04-14 6:01
科学之子
liaozc 写了:liaozhaocong@ubuntu:~$ gcc -S hello.i -o hello.s
hello.c: In function ‘main’:
hello.c:4:10: error: stray ‘\357’ in program
printf("Hello!this is our embedded world!\n ");
^
hello.c:4:10: error: stray ‘\274’ in program
hello.c:4:10: error: stray ‘\210’ in program
hello.c:4:19: error: expected ‘;’ before string constant
printf("Hello!this is our embedded world!\n ");
^
hello.c:4:19: error: stray ‘\357’ in program
hello.c:4:19: error: stray ‘\274’ in program
hello.c:4:19: error: stray ‘\211’ in program
看样子像是在百度贴吧或百度百科直接复制的代码吧?
网页自己加上的特殊字符,没办法.

Re: 为什么会这样求解释?????

发表于 : 2016-04-14 10:33
rosynirvana
明显是全角符号,看你粘贴上来的就是那个括号