c++错误代码

本文列举并解释了C++编程中常见的错误,包括不明确的运算、符号冲突、参数列表错误、数组边界问题、文件名格式错误、预处理器指令语法错误、位字段长度过大等,帮助开发者更好地理解和解决编译时遇到的问题。
摘要由CSDN通过智能技术生成

Ambiguous operators need parentheses -----------不明确的运算需要用括号括起
Ambiguous symbol ''xxx'' ----------------不明确的符号
Argument list syntax error ----------------参数表语法错误
Array bounds missing ------------------丢失数组界限符
Array size toolarge -----------------数组尺寸太大
Bad character in paramenters ------------------参数中有不适当的字符
Bad file name format in include directive --------------------包含命令中文件名格式不正确
Bad ifdef directive synatax ------------------------------编译预处理ifdef有语法错
Bad undef directive syntax ---------------------------编译预处理undef有语法错
Bit field too large ----------------位字段太长
Call of non-function -----------------调用未定义的函数
Call to function with no prototype ---------------调用函数时没有函数的说明
Cannot modify a const object ---------------不允许修改常量对象
Case outside of switch ----------------漏掉了case 语句
Case syntax error ------------------ Case 语法错误
Code has no effect -----------------代码不可述不可能执行到
Compound statement missing{ --------------------分程序漏掉"{"
Conflicting type modifiers ------------------不明确的类型说明符
Constant expression required ----------------要求常量表达式
Constant out of range in comparison -----------------在比较中常量超出范围
Conversion may lose significant digits -----------------转换时会丢失意义的数字
Conversion of near pointer not allowed -----------------不允许转换近指针
Could not find file ''xxx'' -----------------------找不到XXX文件
Declaration missing ; ----------------说明缺少";"
Declaration syntax error -----------------说明中出现语法错误
Default outside of switch ------------------ Default 出现在switch语句之外
Define directive needs an identifier

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值