![c语言编译中的常见错误_第1页](http://file4.renrendoc.com/view/09cf6313a00578dc77f768a8c7a4eae6/09cf6313a00578dc77f768a8c7a4eae61.gif)
![c语言编译中的常见错误_第2页](http://file4.renrendoc.com/view/09cf6313a00578dc77f768a8c7a4eae6/09cf6313a00578dc77f768a8c7a4eae62.gif)
![c语言编译中的常见错误_第3页](http://file4.renrendoc.com/view/09cf6313a00578dc77f768a8c7a4eae6/09cf6313a00578dc77f768a8c7a4eae63.gif)
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、1declarebutneverisassignedavaluewhichisnever?Codehasno ?Non-portableersibleuseof before1declarebutneverisassignedavaluewhichisnever?Codehasno ?Non-portableersibleuseof before? of一个程序文件中主函数main?Suspicious?UnreachableCompoundementmissinginfunction“”expected;“(”expectedCaseoutsideof不属于Switchswitch?Case
2、ementmissing?Constant?Declarationsyntaxerror ?Defaultoutside?doementve?Extraparameterincall?Illegaluseofer ?Invalider?LvalueMisplaced? No? errequiredonleftside? ementmissing; ?Toorameters?Illegaluseofer ?Invalider?LvalueMisplaced? No? errequiredonleftside? ementmissing; ?Toorametersin?Unabletoopenin
3、cludefileUnexpected或:或UndefinedsymbolXinfunctionfun fun中的变量X主要错误类似于“undefinedsymbol?Abnormalprogram?Floatingerror或Divideby运算结果不是一个数或被0 ?Null er?User 5GOtoCursorF4)oF7)到被调函数Step。Debug Result域中显示变量或表达式的值。还可以用New value 到被调函数Step。Debug Result域中显示变量或表达式的值。还可以用New value 域进行调试。如果调试程序时发现Result AddWatchAddWa
4、tchcnotanargumentinfunctionsumarrayboundsmissinginfunctionmain 3.Array size too large in function main 数组规模太大4.badfilenameformatinincludedirective在包含指令中的文件名格式不正确5.Callofnon-functioninfunctionmaincannotmodifyaconstobjectinfunctionmain 对常量不能进行修改characterconstanttoolonginfunctionmain8.constantrequiredi
5、nfuntionmain数组定义的时候,数poundmentmissinginfunctionmain 10.declarationsyntaxerrorinfunctionsyntaxinfunctionmain12.extraparameter数poundmentmissinginfunctionmain 10.declarationsyntaxerrorinfunctionsyntaxinfunctionmain12.extraparameter incalltosuminfunction13.illegaluseoffloatinginfunctionmain14.illegalpio
6、ntersubtractioninfunctionmain15.invalideradditioninfunctionmain16.outofmemoryinfunctionmainementmissinginfunctionmain语句后面漏掉分号1.kisassignedavaluewhichisneverused定义了一个变量,sibiysignmentinfunctionmain3.suspicious erinfunctionmain4.codehasnoeffectinfuntionmainAmbiguousoperatorsneedparentheses:Ambiguoussym
7、bolArgumentlistsyntaxerror:参数表语法错误 Array bounds missing :丢失数组界限符 Array size toolarge :数组尺寸太大BadcharacterinparamentersBadfilenameformatinincludedirective包含命令中文件名格式不正确 Bad ifdef directive synatax :ifdef有语法错BadundefdirectivesyntaxundefBitfieldtoolargeCallofnon-functionCalltofunctionwithnoprototype调用函数时
8、没有函数的说明 Cannot modify a const object :不允许修改常量对象CaseoutsideofswitchcaseCasesyntaxerrorCaseCodehasnoeffectCompoundementmissing分程序漏掉ingtypemodifiersConstantrequiredConstantoutofrangeincomparisonmayloseCasesyntaxerrorCaseCodehasnoeffectCompoundementmissing分程序漏掉ingtypemodifiersConstantrequiredConstantout
9、ofrangeincomparisonmaylosesignificantdigitsofnearernotallowedCouldnotfindfile Declaration missing ; :说明缺少; Declarationsyntaxerror说明中出现语法错误DefaultoutsideofswitchDefaultswitchDefinedirectiveneedsanidentifierbyzeroDo ementvewhileDo-whilewhileEnumsyntaxerrorEnumerationconstantsyntaxerrorErrordirectiveEr
10、rorwritingoutputfilesyntaxerrorExtraparameterincallFile longFunctioncallmissingFuctiondefinitionoutof placeFuctionshouldreturnavalueGotoementmissinglabel:GotoHexadecimaloroctalconstanttoolarge:168IllegalcharacterxIllegalinitialization: Illegal octal digit :IllegalersubtractionIllegalstructureoperati
11、onIllegal useoffloating:Illegal useof erImproperuseofatypedefsymbol类型定义符号使用不恰当 In-line assembly not allowed :不允许使用行间汇编patiblestorageIllegalersubtractionIllegalstructureoperationIllegal useoffloating:Illegal useof erImproperuseofatypedefsymbol类型定义符号使用不恰当 In-line assembly not allowed :不允许使用行间汇编patible
12、storageclasspatibletypeIncorrectnumberformatIncorrectuseofdefault Default使用不当InvalidindirectionInvalid eradditionIrreducible Lvaluerequired00MacroargumentsyntaxerrorMacro toolongMismatchednumberofparametersindefinitionMisplacedbreakbreakMisplacedcontinuecontinueMisplaceddecimalMisplacedelifdirective
13、MisplacedelseMisplaced else directive else Misplacedendifdirectiveendif Must be addressable 必须是可以编址的Musttakeaddressofmemorylocation必NodeclarationforfunctionNostackNotypeinformationNon-portableerassignment不可移动的指针(地址常数)Non-portablepo Non-portableNot avalid ercomparison不可移动的指针(地址常数)erformattypelowedtyp
14、eNumericconstanttooNotypeinformationNon-portableerassignment不可移动的指针(地址常数)Non-portablepo Non-portableNot avalid ercomparison不可移动的指针(地址常数)erformattypelowedtypeNumericconstanttoolargeOutofmemoryParameterisneverusederrequiredonleftsideof符号-sibleuseof siblyRedeclarationofRedefinitionofbeforedefinitionsig
15、nmentisnotidenticalxxRegisterallocationfailureRepeatcountneedsanlvalueSizeofstructureorarraynotknownSementmissing语句后缺少StructureorunionsyntaxerrorXStructuresizetoolargeSubscriptingmissingSuperfluous&withfunctionorarray函数或数组中有多余的SuspiciouserSymbollimitexceededToo rametersincallToo many default cases D
16、efault太多(switch语句中一个) Toomanyerrororwarningmessages错误或警告信息太多ToomanytypeindeclarationToomuchautomemoryinfunctionToomuchglobaldatadefinedinfileTwoconsecutivedotsTypemismatchin数TypemismatchinredeclarationofxxUnabletocreateoutputfileUnabletoopenincludefile Unable to open input file UndefinedlabelUndefin
17、edstructureUndefinedsymbolUnexpectedTwoconsecutivedotsTypemismatchin数TypemismatchinredeclarationofxxUnabletocreateoutputfileUnabletoopenincludefile Unable to open input file UndefinedlabelUndefinedstructureUndefinedsymbolUnexpectedendoffileincommentstartedon从Unexpectedendoffileinconditionalstartedon从UnknownassembleinstructionUnknownopt
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2024版草花购销合同模板
- (高清版)GBT 20985.2-2020 信息技术 安全技术 信息安全事件管理 第2部分:事件响应规划和准备指南
- (高清版)GBT 39844-2021 可靠性增长 统计试验和评估方法
- 冰柜租赁合同范本版本
- 医美整形鼻综合项目包装
- 上海网络购物合同范本
- 工厂船舶安装合同范本
- 摊位天幕租赁合同范本
- 别墅合同买卖合同范本
- 北京律师聘用合同范本
- DZT 0222-2006 地质灾害防治工程监理规范(正式版)
- 2024国网陕西电力省管产业单位供电服务业务部招聘(379人)高频考题难、易错点模拟试题(共500题)附带答案详解
- 2024年湖北襄阳市法院系统招聘雇员制审判辅助137人历年公开引进高层次人才和急需紧缺人才笔试参考题库(共500题)答案详解版
- 悦己人生-大学生心理健康智慧树知到期末考试答案章节答案2024年哈尔滨工业大学
- 全球公共艺术设计前沿智慧树知到期末考试答案2024年
- 自考03453创业学复习资料含2021~2021真题
- 介入DSA数字减影工作站介入手术示教介入科信息系统
- 非诺贝特口服固体制剂FDA参比制剂处方组成及专利技术
- 供应商审核计划范本(共10页)
- 足球比赛记录表
- 电池中英文报价单模版
评论
0/150
提交评论