一、语法错误就是编写的程序里面使用了不规范的关键字或者变量名之类的错误,编译都无法通过的程序,编译器无法识别写的程序。

二、代表编译器在编译源文件时遇到了不可识别的非法字符。其值为ascii码值243。这一个值并不在合法的英文字符范围(0~127)范围内,所以一般都是由于误输入造成的。

c语言出现stray是啥错误

编译器出现如此错误提示"stray 飹'in progtam",说明你用了全角符号的空格。

直接从网上拷贝代码贴到Dev C++中会经常遇到 stray 飹' in program 错误,其实问题出在代码中掺入了一些不合法的空格(全角空格),把每行代码后的空格删掉即OK了!

C语言错误对照表:

1、 Ambiguous operators need parentheses — 不明确的运算需要用括号括起

2、 Ambiguous symbol 'xxx' — 不明确的符号

3、 Argument list syntax error — 参数表语法错误

4、 Array bounds missing — 丢失数组界限符

5、 Array size toolarge — 数组尺寸太大

6、 Bad character in paramenters — 参数中有不适当的字符

7、 Bad file name format in include directive — 包含命令中文件名格式不正确

8、 Bad ifdef directive synatax — 编译预处理ifdef有语法错

9、 Bad undef directive syntax — 编译预处理undef有语法错

10、 Bit field too large — 位字段太长

11、 Call of non-function — 调用未定义的函数

12、 Call to function with no prototype — 调用函数时没有函数的说明

13、 Cannot modify a const object — 不允许修改常量对象

14、 Case outside of switch — 漏掉了case 语句

15. Case syntax error — Case 语法错误

16.、 Code has no effect — 代码不可能执行到

17、 Compound statement missing{ — 分程序漏掉"{"

18、 Conflicting type modifiers — 不明确的类型说明符

19、 Constant expression required — 要求常量表达式

20、 Constant out of