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

软件和网站开发以及相关技术探讨
回复
liaozc
帖子: 1
注册时间: 2016-04-03 15:08
系统: ubuntu14.4

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

#1

帖子 liaozc » 2016-04-03 15:17

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
科学之子
帖子: 2284
注册时间: 2013-05-26 6:58
系统: Debian 9

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

#2

帖子 科学之子 » 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
看样子像是在百度贴吧或百度百科直接复制的代码吧?
网页自己加上的特殊字符,没办法.
rosynirvana
帖子: 893
注册时间: 2011-02-14 17:46

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

#3

帖子 rosynirvana » 2016-04-14 10:33

明显是全角符号,看你粘贴上来的就是那个括号
回复