C编程错误分析总结.ppt

上传人:za****8 文档编号:13189296 上传时间:2020-06-06 格式:PPT 页数:15 大小:250.46KB
返回 下载 相关 举报
C编程错误分析总结.ppt_第1页
第1页 / 共15页
C编程错误分析总结.ppt_第2页
第2页 / 共15页
C编程错误分析总结.ppt_第3页
第3页 / 共15页
点击查看更多>>
资源描述
Leilei,1.保留字reservedwords;keywords保留字是c+系统预定义的、由小写英文字母组成的单词、词头或词组。Autoboolbreakcasecharclassconstcontinuedefaultdeletedodoubleelseenumexternfalsefloatforfriendgotoinlineifintlongnewoperatorprivateprotectedpublicregisterreturnshortsignedsizeofstaticstructswitchtemplatethistruetypedefunionunsignedvirtualvoidvolatile,1.Ambiguousoperatorsneedparentheses不明确的运算需要用括号括起)|2M*Z%Z$x,MI:E2.Ambiguoussymbolxxx不明确的符号C5b!X0z5|8J!v!l5F4m3.Argumentlistsyntaxerror参数表语法错误+w2t/B/H*Z!O0c4v4.Arrayboundsmissing丢失数组界限符5.Arraysizetoolarge数组尺寸太大6.Badcharacterinparamenters参数中有不适当的字符3py#W-B,-w2Y7.Badfilenameformatinincludedirective包含命令中文件名格式不正确2A-d7dh;_/,I9Y(E5|(O5|!:s7e8.Badifdefdirectivesynatax编译预处理ifdef有语法错,!R/F+?,5H/D-G15V-h-F#V0P9B0q8I9.Badundefdirectivesyntax编译预处理undef有语法错10.Bitfieldtoolarge位字段太长;m/r4U-r.bp11.Callofnon-function调用未定义的函数8x*T0i1P3T!L!M;N,I-kn12.Calltofunctionwithnoprototype调用函数时没有函数的说明%eR)KS;S%*a-a13.Cannotmodifyaconstobject不允许修改常量对象#B56SvM/v$G5s:Me%#r4;T+J14.Caseoutsideofswitch漏掉了case语句-L;F*B-r;qK,K5-nHeT9r3I,7hq1DU1q5s#I+ab29.DostatementmusthavewhileDo-while语句中缺少while部分-.w%*YX(l4G+G|0M-(tU30.Enumsyntaxerror枚举类型语法错误t9M/?,X,q)t!iz/I45p(t0_6N7w9s7o1|31.Enumerationconstantsyntaxerror枚举常数语法错误-Z+.y*Z(x1w+G8N:*C9c/t2c/K0v!Y(Q32.Errordirective:xxx错误的编译预处理命令*c4L(T8c2B8X833.Errorwritingoutputfile写输出文件错误34.Expressionsyntaxerror表达式语法错误4r,D+s-a6y35.Extraparameterincall调用时出现多余错误/Z$r$M7e$8M36.Filenametoolong文件名太长a%I0mr(Q5)N37.Functioncallmissing)函数调用缺少右括号7nw+dC!D$u4?*A*r:_2Y3S,R:j7w,A38.Fuctiondefinitionoutofplace函数定义位置错误0?)V%.L%h4A1B5L4E%S,_)m!A!/N8,h39.Fuctionshouldreturnavalue函数必需返回一个值5?,H,.$I7I1m840.GotostatementmissinglabelGoto语句没有标号$y$M2r)G9n41.Hexadecimaloroctalconstanttoolarge16进制或8进制常数太大42.Illegalcharacterx非法字符x8|Y!L3I).L.W43.Illegalinitialization非法的初始化44.Illegaloctaldigit非法的8进制数字0i$?b!xi/_45.Illegalpointersubtraction非法的指针相减/O+c*M1q(X2X2t,i!b/N7f46.Illegalstructureoperation非法的结构体操作47.Illegaluseoffloatingpoint非法的浮点运算48.Illegaluseofpointer指针使用非法$OO%n9P+i;S,(yl49.Improperuseofatypedefsymbol类型定义符号使用不恰当+A.m#E*_;P,l50.In-lineassemblynotallowed不允许使用行间汇编51.Incompatiblestorageclass存储类别不相容M+Q2j7W,No:F6R,$+l$Y;:Js52.Incompatibletypeconversion不相容的类型转换)JB9J7D?/m6H11j-V2l8l,53.Incorrectnumberformat错误的数据格式0oR,B4J;Q54.IncorrectuseofdefaultDefault使用不当8k*u5K0a4+u/y2%!R8m-T0w:XP55.Invalidindirection无效的间接运算;Z%Lg)Y+ku/2y56.Invalidpointeraddition指针相加无效0G1M.Ls:P;s3b0b!l,SX;x8o6|57.Irreducibleexpressiontree无法执行的表达式运算/F8u4H0f6DcX)v58.Lvaluerequired需要逻辑值0或非0值59.Macroargumentsyntaxerror宏参数语法错误$x!c*d9Y2n$u0F4K.j4n!B60.Macroexpansiontoolong宏的扩展以后太长61.Mismatchednumberofparametersindefinition定义中参数个数不匹配2a%J10f*Y-R*B,$e1k8R+E)K/GZ62.Misplacedbreak此处不应出现break语句)F$t;o%k5J:Z8|9m63.Misplacedcontinue此处不应出现continue语句(B$p2k*e$D)X!H)K%K64.Misplaceddecimalpoint此处不应出现小数点65.Misplacedelifdirective不应编译预处理elif1t/:q:?(J0d2|$N66.Misplacedelse此处不应出现else*3N$l5Jj!If67.Misplacedelsedirective此处不应出现编译预处理else5S0F;V!9z+)D)_68.Misplacedendifdirective此处不应出现编译预处理endifg2e2)%?0E+k!e4C4Q6v:o9H69.Mustbeaddressable必须是可以编址的.D0uO+f6;k;F/70.Musttakeaddressofmemorylocation必须存储定位的地址1A7E;Z9g#h6I3SV/C-(D%t!71.Nodeclarationforfunctionxxx没有函数xxx的说明6Y8A%_!D.C4Gl172.Nostack缺少堆栈$9i+E#D7A#x/X#1V7UX!i:PZ.)D773.Notypeinformation没有类型信息74.Non-portablepointerassignment不可移动的指针(地址常数)赋值$5H,T(I(+?2s0?2A75.Non-portablepointercomparison不可移动的指针(地址常数)比较8dLr6h55pd2X+H;y0W+.A!Pa*h2v.D)N;r76.Non-portablepointerconversion不可移动的指针(地址常数)转换)Nld#V!O2m)h(r$x%z1jd77.Notavalidexpressionformattype不合法的表达式格式78.Notanallowedtype不允许使用的类型xv8n.$x82.Pointerrequiredonleftsideof-符号-的左边必须是指针.|5F0 x3zHc!6K+P7R:W7z-B0p0_)P83.Possibleuseofxxxbeforedefinition在定义之前就使用了xxx(警告)./Ae3R-s(y2v5,r84.Possiblyincorrectassignment赋值可能不正确,x3R$H57F0U!s85.Redeclarationofxxx重复定义了xxx)n%f4d/l.D7_L.lE(wR86.Redefinitionofxxxisnotidenticalxxx的两次定义不一致4D,R.Y)(c(h4X#o:*m9Sev,g87.Registerallocationfailure寄存器定址失败88.Repeatcountneedsanlvalue重复计数需要逻辑值5F+X-o-J)U1L3GJb3O*O6d7p6W0-F%TY89.Sizeofstructureorarraynotknown结构体或数给大小不确定90.Statementmissing;语句后缺少;*4a2Q/go,N9Y91.Structureorunionsyntaxerror结构体或联合体语法错误4s#l-U1q*s.M:a8Z+Q#G1N%C(t92.Structuresizetoolarge结构体尺寸太大8J5U2:be$A;d!U*S+.R4O#s/N*N3s#dL93.Subscriptingmissing下标缺少右方括号FH#_5pP)Hx,KKg(j4j0ga(J8J+W#ZA94.Superfluouswithfunctionorarray函数或数组中有多余的t:C5q%xRL,P97.Toofewparametersincall函数调用时的实参少于函数的参数不98.ToomanydefaultcasesDefault太多(switch语句中一个)99.Toomanyerrororwarningmessages错误或警告信息太多/l(k,3Z8k*VK9e100.Toomanytypeindeclaration说明中类型太多2f4Q(7t,F6M0!3Y101.Toomuchautomemoryinfunction函数用到的局部存储太多1_K2sS7z#M-d9IE2A-T0L102.Toomuchglobaldatadefinedinfile文件中全局数据太多1r9*g*es5O2C103.Twoconsecutivedots两个连续的句点104.Typemismatchinparameterxxx参数xxx类型不匹配_M/S9Ft6u+w,W-8H0M8bH#I*?C,105.Typemismatchinredeclarationofxxxxxx重定义的类型不匹配Z76f)b54w6n:tT*qt$n:r6Q-H.e#7*l*D106.Unabletocreateoutputfilexxx无法建立输出文件xxx10.Unabletoopenincludefilexxx无法打开被包含的文件xxx108.Unabletoopeninputfilexxx无法打开输入文件xxx109.Undefinedlabelxxx没有定义的标号xxx!V0|hH(IzU9u;?110.Undefinedstructurexxx没有定义的结构xxx4I$Q%WY|4Q$P111.Undefinedsymbolxxx没有定义的符号xxxQ+l7d%0P6?)A:rS/112.Unexpectedendoffileincommentstartedonlinexxx从xxx行开始的注解尚未结束文件不能结束8B%,H-zw#B5C#hN113.Unexpectedendoffileinconditionalstartedonlinexxx从xxx开始的条件语句尚未结束文件不能结束,g85tg.y,|.V;|114.Unknownassembleinstruction未知的汇编结构!E,H)|3m(B8Eu115.Unknownoption未知的操作116.Unknownpreprocessordirective:xxx不认识的预处理命令xxx117.Unreachablecode无路可达的代码#U)c.T26L!7Xw2n7k3O$h2vZ118.Unterminatedstringorcharacterconstant字符串缺少引号#Tt%Nv2b.|119.Userbreak用户强行中断了程序o-_,U*O,|C-;/6T+O3k%S9L120.VoidfunctionsmaynotreturnavalueVoid类型的函数不应有返回值7J9v*E!1Nz!ZH121.Wrongnumberofarguments调用函数的参数数目错%#f0V9CF1Z)W!A;K#Vl+M122.xxxnotanargumentxxx不是参数(k2q76P,A,U;v123.xxxnotpartofstructurexxx不是结构体的一部分124.xxxstatementmissing(xxx语句缺少左括号1A,F*WU*_;p%|38xQ16f$U*x5Y125.xxxstatementmissing)xxx语句缺少右括号9V;tH7XS:I*v3H,m#126.xxxstatementmissing;xxx缺少分号+N3n,A,g1N5w127.xxxdeclaredbutneverused说明了xxx但没有使用$,N8Q:f#5cy(S*128.xxxisassignedavaluewhichisneverused给xxx赋了值但未用过4D/L5z(DE4R%z(V$C0H5L!Z8A,P#h*+y4q4Z3s.o129.Zerolengthstructure结构体的长度为零,TURBOC编译错误信息说明大全#operatornotfollowedbymacoargumentname#运算符后没跟宏变元名Ambiguousoperatorsneedparentheses不明确的运算需要用括号括起Ambiguoussymbolxxx不明确的符号Argument#missingname参数#名丢失Argumentlistsyntaxerror参数表语法错误Arrayboundsmissing丢失数组界限符Arraysizetoolarge数组尺寸太大Assemblerstatementtoolong汇编语句太长Badcallofin-linefunction内部函数非法调用Badcharacterinparamenters参数中有不适当的字符Badconfigurationfile配置文件不正确Badfilenameformatinincludedirective包含命令中文件名格式不正确Badifdefdirectivesynatax编译预处理ifdef有语法错Badifndefdirectivesyntax编译预处理ifndef指令语法错误Badundefdirectivesyntax编译预处理undef有语法错Bitfieldtoolarge位字段太长,Callofnon-function调用未定义的函数Calltofunctionwithnoprototype调用函数时没有函数的说明Cannotmodifyaconstobject不允许修改常量对象CaseoutsideofswitchCase出现在switch外CasestatementmissingCase语句漏掉CasesyntaxerrorCase语法错误Characterconstanttoolong字符常量太长Codehasnoeffect代码不可述不可能执行到Compoundstatementmissing分程序漏掉Conflictingtypemodifiers不明确的类型说明符Constantexpressionrequired要求常量表达式Constantoutofrangeincomparison在比较中常量超出范围Conversionmaylosesignificantdigits转换时会丢失意义的数字Conversionofnearpointernotallowed不允许转换近指针Couldnotfindfilexxx找不到XXX文件Declarationmissing;说明缺少;Declarationneedstypeorstorageclass说明必须给出类型或存储类Declarationsyntaxerror说明中出现语法错误,DefaultoutsideofswitchDefault出现在switch语句之外Definedirectiveneedsanidentifier编译预处理指令Define需要标识符Divisionbyzero用零作除数DostatementmusthavewhileDo-while语句中缺少while部分DOwhilestatementmissing(Dowhile语句中漏掉了符号(Dowhilestatementmissing;Dowhile语句中掉了分号DuplicateCaseCase情况不唯一Enumsyntaxerror枚举类型语法错误Enumerationconstantsyntaxerror枚举常数语法错误Errordirective:xxx错误的编译预处理命令Errorwritingoutputfile写输出文件错误Expressionsyntaxerror表达式语法错误Extraparameterincall调用时出现多余参数Extraparameterincalltoxxxxxx调用xxxxxxxx函数时出现了多余参数Filenametoolong文件名太长Forstatementmissing)For语名缺少)Forstatementmissing(For语句缺少(Forstatementmissing;For语句缺少;Functioncallmissing)函数调用缺少右括号Fuctiondefinitionoutofplace函数定义位置错误Fuctionshouldreturnavalue函数必需返回一个值GotostatementmissinglabelGoto语句没有标号,Hexadecimaloroctalconstanttoolarge16进制或8进制常数太大Ifstatementmissing(If语句缺少(Ifstatementmissing)If语句缺少)Illegalcharacterx非法字符xIllegalinitialization非法的初始化Illegaloctaldigit非法的8进制数字Illegalpointersubtraction非法的指针相减Illegalstructureoperation非法的结构体操作Illegaluseoffloatingpoint非法的浮点运算Illegaluseofpointer指针使用非法Improperuseofatypedefsymbol类型定义符号使用不恰当In-lineassemblynotallowed不允许使用行间汇编Incompatiblestorageclass存储类别不相容Incompatibletypeconversion不相容的类型转换Incorrectcommadnlineargument:xxxxxx不正确的命令行参数:xxxxxxxIncorrectcommadnfileargument:xxxxxx不正确的配置文件参数:xxxxxxxIncorrectnumberformat错误的数据格式IncorrectuseofdefaultDefault使用不当Initializersyntaxerror初始化语法错误Invalidindirection无效的间接运算Invalidmacroargumentseparator无效的宏参数分隔符Invalidpointeraddition指针相加无效,Irreducibleexpressiontree无法执行的表达式运算Invaliduseofdot点使用错Lvaluerequiredisassignedavalue需要逻辑值0或非0值Macroargumentsyntaxerror宏参数语法错误Macroexpansiontoolong宏的扩展太长Mismatchednumberofparametersindefinition定义中参数个数不匹配Misplacedbreak此处不应出现break语句Misplacedcontinue此处不应出现continue语句Misplaceddecimalpoint此处不应出现小数点xxxMisplacedelse此处不应出现elseMisplacedelsedirective此处不应出现编译预处理elseMisplacedendifdirective此处不应出现编译预处理endifMustbeaddressable必须是可以编址的Musttakeaddressofmemorylocation必须存储定位的地址Nodeclarationforfunctionxxx没有函数xxx的说明Nofilenameending无文件终止符Nofilenamesgiven未给出文件名Nostack缺少堆栈Notypeinformation没有类型信息Non-portablepointerassignment对不可移动的指针(地址常数)赋值Non-portablepointercomparison不可移动的指针(地址常数)比较,Non-portablepointerconversion不可移动的指针(地址常数)转换Non-protablereturntypeconversion不可移植的返回类型转换Notavalidexpressionformattype不合法的表达式格式Notanallowedtype不允许使用的类型Numericconstanttoolarge数值常太大Outofmemory内存不够用Parameterxxxisneverused参数xxx没有用到Pointerrequiredonleftsideof-符号-的左边必须是指针Possibleuseofxxxbeforedefinition在定义之前就使用了xxx(警告)Possiblyincorrectassignment赋值可能不正确Redeclarationofxxx重复定义了xxxRedefinitionofxxxisnotidenticalxxx的两次定义不一致Registerallocationfailure寄存器定址失败Repeatcountneedsanlvalue重复计数需要逻辑值Sizeofstructureorarraynotknown结构体或数组大小不确定Statementmissing;语句后缺少;Structureorunionsyntaxerror结构体或联合体语法错误Structuresizetoolarge结构体尺寸太大Subscriptingmissing下标缺少右方括号Superfluousxxx缺少分号xxxdeclaredbutneverused说明了xxx但没有使用xxxisassignedavaluewhichisneverused给xxx赋了值但未用过Zerolengthstructure结构体的长度为零,
展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 图纸专区 > 课件教案


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!