常见的c语言错误,常见c语言错误中文对照表.doc

这篇博客详细列举了C语言编程中常见的错误,包括运算符不明确、符号冲突、参数列表语法错误、数组界限丢失等,并提供了相应的解决方法。错误涉及编译预处理、类型说明符、函数调用等多个方面,对初学者和有经验的开发者都有很好的参考价值。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

常见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 range in comparison — 在比较中常量超出范围 21. Conversion may lose significant digits — 转换时会丢失意义的数字 22. Conversion of near pointer not allowed — 不允许转换近指针 23. Could not find file 'xxx' — 找不到XXX文件24. Declaration missing ; — 说明缺少";" 25. Declaration syntax error — 说明中出现语法错误 26. Default outside of switch — Default 出现在switch语句之外27. Define directive needs an identifier — 定义编译预处理需要标识符 28. Division by zero — 用零作除数 29. Do statement must have while — Do-while语句中缺少while部分 30. Enum syntax error — 枚举类型语法错误 31. Enumeration constant syntax error — 枚举常数语法错误32. Error directive :xxx — 错误的编译预处理命令 33. Error writing output file — 写输出文件错误 34. Expression syntax error — 表达式语法错误 35. Extra parameter in call — 调用时出现多余错误 36. File name too long — 文件名太长 37. Function call missing ) — 函数调用缺少右括号 38. Fuction definition out of place — 函数定义位置错误 39. Fuction should return a value — 函数必需返回一个值 40. Goto statement missing label — Goto语句没有标号 41. Hexadecimal or octal constant too large — 16进制或8进制常数太大42. Illegal character 'x' — 非法字符x 43. Illegal initialization — 非法的初始化 44. Illegal octal digit — 非法的8进制数字 45. Illegal pointer subtracti

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值