Leilei
1. 保留字reserved words ; keywords
保留字是c++系统预定义的、由小写英文字母组成的单词、词头或词组。
Auto bool break case char class
const continue default delete do double
else enum extern false float for
friend goto inline if int long
new operator private protected public register
return short signed sizeof static struct
switch template this true typedefunion
unsigned virtual void volatile
1. Ambiguous operators need parentheses —不明确的运算需要用括号括起) |2 M* Z% Z$ x, M' I: E2. Ambiguous symbol 'xxx' —不明确的符号" C5 b! X0 z5 |8 J! v! l5 F4 m3. Argument list syntax error —参数表语法错误+ w2 t/ B/ H* Z! O0 c4 v4. Array bounds missing —丢失数组界限符5. Array size toolarge —数组尺寸太大6. Bad character in paramenters —参数中有不适当的字符 3 p y# W- B, `- w2 Y7. Bad file name format in include directive —包含命令中文件名格式不正确 2 A- d7 d h; _/ \, I9 Y( E5 |( O5 |! ^: s7 e8. Bad ifdef directive synatax —编译预处理ifdef有语法错, ^! R/ F+ ?, {5 H/ D- G1 {5 V- h- F# V0 P9 B0 q8 I9. Bad undef directive syntax —编译预处理undef有语法错10. Bit field too large —位字段太长; m/ r4 U- r. b" p11. Call of non-function —调用未定义的函数8 x* T0 i1 P3 T! L! M; N, I- k" n12. Call to function with no prototype —调用函数时没有函数的说明% e" R) K S; S% [* a- a13. Cannot modify a const object —不允许修改常量对象# B5 }6 S" v" M/ v$ G5 s: M e% ]# r4 @; T" @+ J14. Case outside of switch —漏掉了case 语句- L; F* B- r; q' K, K5 @- n H& E; |6 O l' l# {15. Case syntax error — Case 语法错误2 s! j; Y- M" ]+ l0 b* p$ J8 u1 V; b2 y6 o16. Code has no effect —代码不可能执行到17. Compound statement missing{ —分程序漏掉"{" 9 ~8 \) j* [; q; j' e2 p' G9 w: P3 @18. Conflicting type modifiers —不明确的类型说明符. S2 ] C( m7 Z/ `0 `$ T$ ~. t+ n" u5 L19. Constant expression required —要求常量表达式20. Constant out of range parison —在比较中常量超出范围21. Conversion may lose significant digits —转换时会丢失意义的数字) H! B8 Y: t4 g, L8 s22. Conversion of near pointer not allowed —不允许转换近指针 4 d+ W, R" T- A) l( |6 J! p1 ?; ?23. Could not find file 'xxx' —找不到XXX文件5 ]; R7 e9 B* H, l# j3 c5 z* ~24. Declaration missing ; —说明缺少";" 0 ?! i6 y- ***@7 }6 u, ^25. Declaration
c++编程错误分析总结 来自淘豆网www.taodocs.com转载请标明出处.