c语言知识整理(附出错英汉对照)
常见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' — 非法字符x43. Illegal initialization — 非法的初始化44. Illegal octal digit — 非法的8进制数字45. Illegal pointer subtraction — 非法的指针相减46. Illegal structure operation — 非法的结构体操作47. Illegal use of floating point — 非法的浮点运算48. Illegal use of pointer — 指针使用非法49. Improper use of a typedefsymbol — 类型定义符号使用不恰当50. In-line assembly not allowed — 不允许使用行间汇编51. Incompatible storage class — 存储类别不相容52. Incompatible type conversion — 不相容的类型转换53. Incorrect number format — 错误的数据格式54. Incorrect use of default — Default使用不当55. Invalid indirection — 无效的间接运算56. Invalid pointer addition — 指针相加无效57. Irreducible expression tree — 无法执行的表达式运算58. Lvalue required — 需要逻辑值0或非0值59. Macro argument syntax error — 宏参数语法错误60. Macro expansion too long — 宏的扩展以后太长61. Mismatched number of parameters in definition — 定义中参数个数不匹配62. Misplaced break — 此处不应出现break语句63. Misplaced continue — 此处不应出现continue语句64. Misplaced decimal point — 此处不应出现小数点65. Misplaced elif directive — 不应编译预处理elif66. Misplaced else — 此处不应出现else67. Misplaced else directive — 此处不应出现编译预处理else68. Misplaced endif directive — 此处不应出现编译预处理endif69. Must be addressable — 必须是可以编址的70. Must take address of memory location — 必须存储定位的地址71. No declaration for function 'xxx' — 没有函数xxx的说明72. No stack — 缺少堆栈73. No type information — 没有类型信息74. Non-portable pointer assignment — 不可移动的指针(地址常数)赋值75. Non-portable pointer comparison — 不可移动的指针(地址常数)比较76. Non-portable pointer conversion — 不可移动的指针(地址常数)转换77. Not a valid expression format type — 不合法的表达式格式78. Not an allowed type — 不允许使用的类型79. Numeric constant too large — 数值常太大80. Out of memory — 内存不够用81. Parameter 'xxx' is never used — 能数xxx没有用到82. Pointer required on left side of -> — 符号->的左边必须是指针83. Possible use of 'xxx' before definition — 在定义之前就使用了xxx(警告)84. Possibly incorrect assignment — 赋值可能不正确85. Redeclaration of 'xxx' — 重复定义了xxx86. Redefinition of 'xxx' is not identical — xxx的两次定义不一致87. Register allocation failure — 寄存器定址失败88. Repeat count needs an lvalue — 重复计数需要逻辑值89. Size of structure or array not known — 结构体或数给大小不确定90. Statement missing ; — 语句后缺少";"91. Structure or union syntax error — 结构体或联合体语法错误92. Structure size too large — 结构体尺寸太大93. Sub scripting missing ] — 下标缺少右方括号94. Superfluous & with function or array — 函数或数组中有多余的"&"95. Suspicious pointer conversion — 可疑的指针转换96. Symbol limit exceeded — 符号超限97. Too few parameters in call — 函数调用时的实参少于函数的参数不98. Too many default cases — Default太多(switch语句中一个)99. Too many error or warning messages — 错误或警告信息太多100. Too many type in declaration — 说明中类型太多101. Too much auto memory in function — 函数用到的局部存储太多102. Too much global data defined in file — 文件中全局数据太多103. Two consecutive dots — 两个连续的句点104. Type mismatch in parameter xxx — 参数xxx类型不匹配105. Type mismatch in redeclaration of 'xxx' — xxx重定义的类型不匹配106. Unable to create output file 'xxx' — 无法建立输出文件xxx107. Unable to open include file 'xxx' — 无法打开被包含的文件xxx 108. Unable to open input file 'xxx' — 无法打开输入文件xxx109. Undefined label 'xxx' — 没有定义的标号xxx110. Undefined structure 'xxx' — 没有定义的结构xxx111. Undefined symbol 'xxx' — 没有定义的符号xxx112. Unexpected end of file in comment started on line xxx — 从xxx行开始的注解尚未结束文件不能结束113. Unexpected end of file in conditional started on line xxx — 从xxx 开始的条件语句尚未结束文件不能结束114. Unknown assemble instruction — 未知的汇编结构115. Unknown option — 未知的操作116. Unknown preprocessor directive: 'xxx' — 不认识的预处理命令xxx117. Unreachable code — 无路可达的代码118. Unterminated string or character constant — 字符串缺少引号119. User break — 用户强行中断了程序120. Void functions may not return a value — Void类型的函数不应有返回值121. Wrong number of arguments — 调用函数的参数数目错122. 'xxx' not an argument — xxx不是参数123. 'xxx' not part of structure — xxx不是结构体的一部分124. xxx statement missing ( — xxx语句缺少左括号125. xxx statement missing ) — xxx语句缺少右括号126. xxx statement missing ; — xxx缺少分号127. xxx' declared but never used — 说明了xxx但没有使用128. xxx' is assigned a value which is never used — 给xxx赋了值但未用过。
C语言程序设计(第4版)》-CodeBlocks常见编程错误英汉对照-051

出现这些错误提示,有可能是函数原型 后面忘记写分号造成的
control reaches end of non-void function oldstyle parameter declarations in prototyped
function definition
right-hand operand of comma expression has no
'xxx'被重定义 'xxx'被作为不同的标识符被重定义
通常是由于该标识符在不同位置被重 复定义导致的
通常是函数的形参在函数内又被定义 为局部变量导致的
return type defaults to 'int'
函数的缺省返回值类型为 int
通常是函数没有定义返回值类型造成 的
stray '\357' in program
通常是函数调用语句的函数名后面将 圆括号错写为方括号造成的
定义的数组太大,超过了可用内存空 间
结构太大
通常是由定义结构体类型时使用了本 结构体类型来定义域名的类型所引起的
suggest parentheses around assignment used as truth value
有可能是 if 后面的表达式中的比较相 建议在赋值表达式两边加圆括号,使其
通 常 是 scanf 格 式 字 符 不 匹 配 或者 scanf 地址变量列表中的变量未加去抵制 运算符&引起的警告
but argument 2 has type 'int *' function returns address of local variable
'else' without a previous 'if'
常见c语言错误(中英对照)

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 errorCase 语法错误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 switchDefault 出现在switch语句之外Define directive needs an identifier定义编译预处理需要标识符Division by zero用零作除数Do statement must have whileDo-while语句中缺少while部分Enum syntax error枚举类型语法错误Enumeration constant syntax error枚举常数语法错误Error directive :xxx错误的编译预处理命令Error writing output file写输出文件错误Expression syntax error表达式语法错误Extra parameter in call调用时出现多余错误File name too long文件名太长Function call missing )函数调用缺少右括号Fuction definition out of place函数定义位置错误Fuction should return a value函数必需返回一个值Goto statement missing labelGoto语句没有标号Hexadecimal or octal constant too large 16进制或8进制常数太大Illegal character ''x''非法字符xIllegal initialization非法的初始化Illegal octal digit非法的8进制数字Illegal pointer subtraction非法的指针相减Illegal structure operation非法的结构体操作Illegal use of floating point非法的浮点运算Illegal use of pointer指针使用非法Improper use of a typedefsymbol类型定义符号使用不恰当In-line assembly not allowed不允许使用行间汇编Incompatible storage class存储类别不相容Incompatible type conversion不相容的类型转换Incorrect number format错误的数据格式Incorrect use of defaultDefault使用不当Invalid indirection无效的间接运算Invalid pointer addition指针相加无效Irreducible expression tree无法执行的表达式运算Lvalue required需要逻辑值0或非0值Macro argument syntax error宏参数语法错误Macro expansion too long宏的扩展以后太长Mismatched number of parameters in definition 定义中参数个数不匹配Misplaced break此处不应出现break语句Misplaced continue此处不应出现continue语句Misplaced decimal point此处不应出现小数点Misplaced elif directive不应编译预处理elifMisplaced else此处不应出现elseMisplaced else directive此处不应出现编译预处理else Misplaced endif directive此处不应出现编译预处理endif Must be addressable必须是可以编址的Must take address of memory location 必须存储定位的地址No declaration for function ''xxx''没有函数xxx的说明No stack缺少堆栈No type information没有类型信息Non-portable pointer assignment不可移动的指针(地址常数)赋值Non-portable pointer comparison不可移动的指针(地址常数)比较Non-portable pointer conversion不可移动的指针(地址常数)转换Not a valid expression format type不合法的表达式格式Not an allowed type不允许使用的类型Numeric constant too large数值常太大Out of memory内存不够用Parameter ''xxx'' is never used能数xxx没有用到Pointer required on left side of ->符号->的左边必须是指针Possible use of ''xxx'' before definition 在定义之前就使用了xxx(警告)Possibly incorrect assignment赋值可能不正确Redeclaration of ''xxx''重复定义了xxxRedefinition of ''xxx'' is not identical xxx的两次定义不一致Register allocation failure寄存器定址失败Repeat count needs an lvalue重复计数需要逻辑值Size of structure or array not known结构体或数给大小不确定Statement missing ;语句后缺少";"Structure or union syntax error结构体或联合体语法错误Structure size too large结构体尺寸太大Sub scripting missing ]下标缺少右方括号Superfluous & with function or array函数或数组中有多余的"&" Suspicious pointer conversion可疑的指针转换Symbol limit exceeded符号超限Too few parameters in call函数调用时的实参少于函数的参数不Too many default casesDefault太多(switch语句中一个)Too many error or warning messages错误或警告信息太多Too many type in declaration说明中类型太多Too much auto memory in function函数用到的局部存储太多Too much global data defined in file文件中全局数据太多Two consecutive dots两个连续的句点Type mismatch in parameter xxx参数xxx类型不匹配Type mismatch in redeclaration of ''xxx'' xxx重定义的类型不匹配Unable to create output file ''xxx''无法建立输出文件xxxUnable to open include file ''xxx''无法打开被包含的文件xxxUnable to open input file ''xxx''无法打开输入文件xxxUndefined label ''xxx''没有定义的标号xxxUndefined structure ''xxx''没有定义的结构xxxUndefined symbol ''xxx''没有定义的符号xxxUnexpected end of file in comment started on line xxx 从xxx行开始的注解尚未结束文件不能结束Unexpected end of file in conditional started on line xxx 从xxx 开始的条件语句尚未结束文件不能结束Unknown assemble instruction未知的汇编结构Unknown option未知的操作Unknown preprocessor directive: ''xxx''不认识的预处理命令xxxUnreachable code无路可达的代码Unterminated string or character constant字符串缺少引号User break用户强行中断了程序Void functions may not return a valueVoid类型的函数不应有返回值Wrong number of arguments调用函数的参数数目错''xxx'' not an argumentxxx不是参数''xxx'' not part of structurexxx不是结构体的一部分xxx statement missing (xxx语句缺少左括号xxx statement missing )xxx语句缺少右括号xxx statement missing ;xxx缺少分号xxx'' declared but never used说明了xxx但没有使用xxx'' is assigned a value which is never used给xxx赋了值但未用过Zero length structure结构体的长度为零。
C语言常见错误中英文对照

fatal error C1003: error count exceeds number; stopping compilation中文对照:错误太多,停止编译分析:修改之前的错误,再次编译fatal error C1004: unexpected end of file found中文对照:文件未结束分析:一个函数或者一个结构定义缺少“}”、或者在一个函数调用或表达式中括号没有配对出现、或者注释符“/*…*/”不完整等fatal error C1083: Cannot open include file: 'xxx': No such file or directory中文对照:无法打开头文件xxx:没有这个文件或路径分析:头文件不存在、或者头文件拼写错误、或者文件为只读fatal error C1903: unable to recover from previous error(s); stopping compilation中文对照:无法从之前的错误中恢复,停止编译分析:引起错误的原因很多,建议先修改之前的错误error C2001: newline in constant中文对照:常量中创建新行分析:字符串常量多行书写error C2006: #include expected a filename, found 'identifier'中文对照:#include命令中需要文件名分析:一般是头文件未用一对双引号或尖括号括起来,例如“#include stdio.h”error C2007: #define syntax中文对照:#define语法错误分析:例如“#define”后缺少宏名,例如“#define”error C2008: 'xxx' : unexpected in macro definition中文对照:宏定义时出现了意外的xxx分析:宏定义时宏名与替换串之间应有空格,例如“#define TRUE"1"”error C2009: reuse of macro formal 'identifier'中文对照:带参宏的形式参数重复使用分析:宏定义如有参数不能重名,例如“#define s(a,a) (a*a)”中参数a重复error C2010: 'character' : unexpected in macro formal parameter list中文对照:带参宏的参数表表现未知字符分析:例如“#define s(r|) r*r”中参数多了一个字符…|‟error C2014: preprocessor command must start as first nonwhite space中文对照:预处理命令前面只允许空格分析:每一条预处理命令都应独占一行,不应出现其他非空格字符error C2015: too many characters in constant中文对照:常量中包含多个字符分析:字符型常量的单引号中只能有一个字符,或是以“\”开始的一个转义字符error C2017: illegal escape sequence中文对照:转义字符非法分析:一般是转义字符位于' ' 或" " 之外,例如“char error = ' '\n;”error C2018: unknown character '0xhh'中文对照:未知的字符0xhh分析:一般是输入了中文标点符号,例如“char error = 'E';”中“;”为中文标点符号error C2019: expected preprocessor directive, found 'character'中文对照:期待预处理命令,但有无效字符分析:一般是预处理命令的#号后误输入其他无效字符,例如“#!define TRUE 1”error C2021: expected exponent value, not 'character'中文对照:期待指数值,不能是字符分析:一般是浮点数的指数表示形式有误,例如123.456Eerror C2039: 'identifier1' : is not a member of 'idenifier2'中文对照:标识符1不是标识符的成员分析:程序错误地调用或引用结构体、共用体、类的成员error C2048: more than one default中文对照:default语句多于一个分析:switch语句中只能有一个default,删去多余的defaulterror C2050: switch expression not integral中文对照:switch表达式不是整型的分析:switch表达式必须是整型(或字符型),例如“switch ("a")”中表达式为字符串,这是非法的error C2051: case expression not constant中文对照:case表达式不是常量分析:case表达式应为常量表达式,例如“case "a"”中“"a"”为字符串,这是非法的error C2052: 'type' : illegal type for case expression中文对照:case表达式类型非法分析:case表达式必须是一个整型常量(包括字符型)error C2057: expected constant expression中文对照:期待常量表达式分析:一般是定义数组时数组长度为变量,例如“int n=10; int a[n];”中n为变量,是非法的error C2058: constant expression is not integral中文对照:常量表达式不是整数分析:一般是定义数组时数组长度不是整型常量error C2059: syntax error : 'xxx'中文对照:…xxx‟语法错误分析:引起错误的原因很多,可能多加或少加了符号xxxerror C2064: term does not evaluate to a function中文对照:无法识别函数语言分析:1、函数参数有误,表达式可能不正确,例如“sqrt(s(s-a)(s-b)(s-c));”中表达式不正确2、变量与函数重名或该标识符不是函数,例如“int i,j; j=i();”中i不是函数error C2065: 'xxx' : undeclared identifier中文对照:未定义的标识符xxx分析:1、如果xxx为cout、cin、scanf、printf、sqrt等,则程序中包含头文件有误2、未定义变量、数组、函数原型等,注意拼写错误或区分大小写。
C语言名词中英对照

C程序设计名词中英对照章名词1 注释note1 中级语言middle-level language1 执行效率execute efficiency1 执行部分execute part1 运算符operator1 物理地址physical address1 位操作bitwise operation1 声明declaration1 目标代码object code1 控制语句control statement1 结构化Structurize(structuring)1 汇编语言assembly language1 函数化functionalization1 函数调用function call1 关键字keyword1 高级语言high-level language1 概述overview1 赋值语句assignment statement1 低级语言low-level language1 程序设计语言programming language2 自然语言natural language2 重复结构iteration structure/repeat structure 2 有效性validity2 有穷性finiteness2 确定性certainty2 模块化modularization2 循环结构loop structure2 选择结构selection structure/branch structure 2 顺序结构sequential structure2 伪代码pseudocode2 算法algorithms2 数据结构data structure2 流程图flow chart2 基本结构basic structure3 增量(自增)运算符increment operator3 减量(自减)运算符decrement operator3 优先级precedence level3 修饰符Decorator3 下标运算符subscript operator3 位运算符bitwise operator3 条件运算符conditional operator3 算术运算符arithmetic operator3 算术表达式arithmetic expression3 求字节运算符sizeof operator3 模运算符(求余)modulus operator3 逻辑运算符Logical operator3 数组类型array type3 数据类型data type3 树tree3 栈stack3 基本类型basic type3 字符型character type3 字符串character string3 转义字符escape character3 指针运算符pointer operator3 指针类型pointer type3 指数形式exponential form3 整型integer3 有符号的signed3 无符号的unsigned3 实型Real type3 实数Real number3 浮点数Floating-point number3 双精度double precision3 单精度single precision3 误差Error3 十六进制hexadecimal3 十进制decimal3 二进制binary3 八进制octal3 类型转换Type conversion3 内存地址memory address3 内存单元memory unit3 枚举类型Enumerated type3 空类型void type3 结构体类型structure type3 减法subtraction3 加法addition3 除法division3 乘法multiplication3 关系运算符relational operator3 构造类型construct type3 共用体类型union type3 赋值运算符assignment operator3 赋值表达式assignment expression3 复合赋值运算符compound assignment operator3 分量运算符structure member operator3 逗号运算符comma operator3 逗号表达式comma expression3 初始化Initialization initializing 3 常量constant3 操作数operand3 表达式expression3 表list3 标识符Identifier3 变量variable3 编译compiling4 终端terminal4 顺序程序Sequential program4 数据描述data description4 数据操作data operation4 输入设备input device4 输出设备output device4 空语句null statement4 函数调用语句Function-call statement4 格式字符format character4 格式化输入formatted input4 格式化输出formatted output4 复合语句compound statement4 分程序subprogram4 表达式语句expression statement5 小于或等于less than or equal to5 小于less than5 条件表达式conditional expression5 嵌套Nest5 逻辑表达式logical expression5 关系表达式relational expression5 分支结构branch structure5 多分支选择multi-branch selection5 等于equal to5 大于或等于great than or equal to5 大于great than5 不等于not equal to5 比较运算Comparison operation5 if语句if statement6 循环体body of loop6 循环控制loop control6 完数perfect number6 素数prime number7 字符串小写string lowercase7 字符串结束标志Indicator of string end 7 字符串复制string copy7 字符串大写string uppercase7 字符串长度string length7 字符串比较string compare7 引用Reference7 一维数组one-dimenisonal array7 选择法排序Selection Sort7 下标subscript7 维dimension7 数组array7 排序sorting7 冒泡法排序bubble sort7 二维数组two-dimensional array7 定义definition8 自动变量auto variable8 按值传递pass by value8 直接递归direct recursion8 形式参数formal parameter8 外部函数external function8 外部变量external variable8 实际参数actual parameter8 声明declaration8 全局变量global variable8 嵌套调用nesting call8 内部函数intrinsic function8 模块module8 库函数library function8 空函数null function8 局部变量local variable8 静态局部变量static local variable8 静态存储static storage8 间接递归indirect recursion8 寄存器变量register variable8 函数原型prototype of function8 函数库function library8 函数function8 返回值returned value8 动态存储dynamic storage8 递归调用recursions function call 8 按地址传递pass by address8 存储类别storage class8 参数parameter / argument8 标准函数standard function9 预处理preprocess9 文件包含file include9 条件编译conditional compile宏定义macro definition9 宏展开macro expansion10 字符串的指针pointer of string10 指针数组array of pointer10 指针的指针pointer to pointer10 指针变量pointer variable10 直接访问direct access10 数组的指针pointer to array10 间接访问indirect access10 基类型base type10 函数的指针pointer to function11 域表(字段列表)field list11 链表Link list11 结构体数组array of structure11 结构体变量的指针pointer to structure variable 11 结构体变量structure variable11 结构体structure11 共用体union type11 成员表列member list12 左移left shift12 右移right shift13 字节流byte stream13 文件状态state of file13 文件指针pointer to file13 文件读写file reading and writing13 文件关闭file closing13 二进制流binary stream13 定位location13 文件打开file opening。
c语言错误大全

1、'bad suffix on number'是数字的下标错误。
2、下面为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 —非法字符x43: Illegal initialization —非法的初始化44: Illegal octal digit —非法的8进制数字A45: Illegal pointer subtraction —非法的指针相减46: Illegal structure operation —非法的结构体操作47: Illegal use of floating point —非法的浮点运算48: Illegal use of pointer —指针使用非法49: Improper use of a typedefsymbol —类型定义符号使用不恰当50: In-line assembly not allowed —不允许使用行间汇编51: Incompatible storage class —存储类别不相容52: Incompatible type conversion —不相容的类型转换53: Incorrect number format —错误的数据格式54: Incorrect use of default —Default使用不当55: Invalid indirection —无效的间接运算56: Invalid pointer addition —指针相加无效57: Irreducible expression tree —无法执行的表达式运算58: Lvalue required —需要逻辑值0或非0值59: Macro argument syntax error —宏参数语法错误60: Macro expansion too long —宏的扩展以后太长61: Mismatched number of parameters in definition —定义中参数个数不匹配62: Misplaced break —此处不应出现break语句63: Misplaced continue —此处不应出现continue语句64: Misplaced decimal point —此处不应出现小数点65: Misplaced elif directive —不应编译预处理elif66: Misplaced else —此处不应出现else67: Misplaced else directive —此处不应出现编译预处理else68: Misplaced endif directive —此处不应出现编译预处理endif69: Must be addressable —必须是可以编址的70: Must take address of memory location —必须存储定位的地址71: No declaration for function xxx —没有函数xxx的说明72: No stack —缺少堆栈73: No type information —没有类型信息74: Non-portable pointer assignment —不可移动的指针(地址常数)赋值75: Non-portable pointer comparison —不可移动的指针(地址常数)比较76: Non-portable pointer conversion —不可移动的指针(地址常数)转换77: Not a valid expression format type —不合法的表达式格式78: Not an allowed type —不允许使用的类型79: Numeric constant too large —数值常太大80: Out of memory —内存不够用81: Parameter xxx is never used —能数xxx没有用到82: Pointer required on left side of -> —符号->的左边必须是指针83: Possible use of xxx before definition —在定义之前就使用了xxx(警告)84: Possibly incorrect assignment —赋值可能不正确85: Redeclaration of xxx —重复定义了xxx86: Redefinition of xxx is not identical —xxx的两次定义不一致87: Register allocation failure —寄存器定址失败88: Repeat count needs an lvalue —重复计数需要逻辑值89: Size of structure or array not known —结构体或数给大小不确定90: Statement missing ; —语句后缺少";"91: Structure or union syntax error —结构体或联合体语法错误92: Structure size too large —结构体尺寸太大93: Sub scripting missing ] —下标缺少右方括号94: Superfluous & with function or array —函数或数组中有多余的"&" 95: Suspicious pointer conversion —可疑的指针转换96: Symbol limit exceeded —符号超限97: Too few parameters in call —函数调用时的实参少于函数的参数不98: Too many default cases —Default太多(switch语句中一个)99: Too many error or warning messages —错误或警告信息太多100: Too many type in declaration —说明中类型太多101: Too much auto memory in function —函数用到的局部存储太多102: Too much global data defined in file —文件中全局数据太多103: Two consecutive dots —两个连续的句点104: Type mismatch in parameter xxx —参数xxx类型不匹配105: Type mismatch in redeclaration of xxx —xxx重定义的类型不匹配106: Unable to create output file xxx —无法建立输出文件xxx107: Unable to open include file xxx —无法打开被包含的文件xxx 108: Unable to open input file xxx —无法打开输入文件xxx109: Undefined label xxx —没有定义的标号xxx110: Undefined structure xxx —没有定义的结构xxx111: Undefined symbol xxx —没有定义的符号xxx112: Unexpected end of file in comment started on line xxx —从xxx行开始的注解尚未结束文件不能结束113: Unexpected end of file in conditional started on line xxx —从xxx 开始的条件语句尚未结束文件不能结束114: Unknown assemble instruction —未知的汇编结构115: Unknown option —未知的操作116: Unknown preprocessor directive: xxx —不认识的预处理命令xxx 117: Unreachable code —无路可达的代码118: Unterminated string or character constant —字符串缺少引号119: User break —用户强行中断了程序120: Void functions may not return a value —Void类型的函数不应有返回值121: Wrong number of arguments —调用函数的参数数目错122: xxx not an argument —xxx不是参数123: xxx not part of structure —xxx不是结构体的一部分124: xxx statement missing ( —xxx语句缺少左括号125: xxx statement missing ) —xxx语句缺少右括号126: xxx statement missing ; —xxx缺少分号127: xxx declared but never used —说明了xxx但没有使用128: xxx is assigned a value which is never used —给xxx赋了值但未用过。
C语言常见错误提示信息的英汉对照

C语言常见错误提示信息的英汉对照常见错误提示信息的英汉对照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 定义编译预处理需要标识符Division by zero 用零作除数Do statement must have while Do-while语句中缺少while部分Enum syntax error 枚举类型语法错误Enumeration constant syntax error 枚举常数语法错误Error directive :xxx 错误的编译预处理命令Error writing output file 写输出文件错误Expression syntax error 表达式语法错误Extra parameter in call 调用时出现多余错误File name too long 文件名太长Function call missing ) 函数调用缺少右括号Fuction definition out of place 函数定义位置错误Fuction should return a value 函数必需返回一个值Goto statement missing label Goto语句没有标号Hexadecimal or octal constant too large 16进制或8进制常数太大Illegal character ’x’ 非法字符xIllegal initialization 非法的初始化Illegal octal digit 非法的8进制数字Illegal pointer subtraction 非法的指针相减Illegal structure operation 非法的结构体操作Illegal use of floating point 非法的浮点运算Illegal use of pointer 指针使用非法Improper use of a typedefsymbol 类型定义符号使用不恰当In-line assembly not allowed 不允许使用行间汇编Incompatible storage class 存储类别不相容Incompatible type conversion 不相容的类型转换Incorrect number format 错误的数据格式Incorrect use of default Default使用不当Invalid indirection 无效的间接运算Invalid pointer addition 指针相加无效Irreducible expression tree 无法执行的表达式运算Lvalue required 需要逻辑值0或非0值Macro argument syntax error 宏参数语法错误Macro expansion too long 宏的扩展以后太长Mismatched number of parameters in definition 定义中参数个数不匹配Misplaced break 此处不应出现break语句Misplaced continue 此处不应出现continue语句Misplaced decimal point 此处不应出现小数点Misplaced elif directive 不应编译预处理elif Misplaced else 此处不应出现elseMisplaced else directive 此处不应出现编译预处理else Misplaced endif directive 此处不应出现编译预处理endif Must be addressable 必须是可以编址的Must take address of memory location 必须存储定位的地址No declaration for function ’xxx’ 没有函数xxx的说明No stack 缺少堆栈No type information 没有类型信息Non-portable pointer assignment 不可移动的指针(地址常数)赋值Non-portable pointer comparison 不可移动的指针(地址常数)比较Non-portable pointer conversion 不可移动的指针(地址常数)转换Not a valid expression format type 不合法的表达式格式Not an allowed type 不允许使用的类型Numeric constant too large 数值常太大Out of memory 内存不够用Parameter ’xxx’ is never used 能数xxx没有用到Pointer required on left side of -> 符号->的左边必须是指针Possible use of ’xxx’ before definition 在定义之前就使用了xxx(警告)Possibly incorrect assignment 赋值可能不正确Redeclaration of ’xxx’ 重复定义了xxx Redefinition of ’xxx’ is not identical x xx的两次定义不一致Register allocation failure 寄存器定址失败Repeat count needs an lvalue 重复计数需要逻辑值Size of structure or array not known 结构体或数给大小不确定Statement missing ; 语句后缺少";"Structure or union syntax error 结构体或联合体语法错误Structure size too large 结构体尺寸太大Sub scripting missing ] 下标缺少右方括号Superfluous & with function or array 函数或数组中有多余的"&"Suspicious pointer conversion 可疑的指针转换Symbol limit exceeded 符号超限Too few parameters in call 函数调用时的实参少于函数的参数Too many default cases Default太多(switch语句中一个)Too many error or warning messages 错误或警告信息太多Too many type in declaration 说明中类型太多Too much auto memory in function 函数用到的局部存储太多Too much global data defined in file 文件中全局数据太多Two consecutive dots 两个连续的句点Type mismatch in parameter xxx 参数xxx类型不匹配Type mismatch in redeclaration of ’xxx’ xxx重定义的类型不匹配Unable to create output file ’xxx’ 无法建立输出文件xxx Unable to open include file ’xxx’ 无法打开被包含的文件xxx Unable to open input file ’xxx’ 无法打开输入文件xxx Undefined label ’xxx’ 没有定义的标号xxx Undefined structure ’xxx’ 没有定义的结构xxx Undefined symbol ’xxx’ 没有定义的符号xxx Unexpected end of file in comment started on line xxx 从xxx行开始的注解尚未结束文件不能结束Unexpected end of file in conditional started on line xxx 从xxx 开始的条件语句尚未结束文件不能结束Unknown assemble instruction 未知的汇编结构Unknown option 未知的操作Unknown preprocessor directive: ’xxx’ 不认识的预处理命令xxx Unreachable code 无路可达的代码Unterminated string or character constant 字符串缺少引号User break 用户强行中断了程序Void functions may not return a value Void类型的函数不应有返回值Wrong number of arguments :调用函数的参数数目错‘xxx’ not an argument :xxx不是参数‘xxx’ not part o f struc ture xxx不是结构体的一部分xxx statement missing ( xxx语句缺少左括号xxx statement missing ) xxx语句缺少右括号xxx statement missing ; xxx缺少分号xxx’ declared but never used 说明了xxx但没有使用xxx’ is assigned a value which is never used 给xxx赋了值但未用过。
c语言专业英语词汇带翻译

c语言专业英语词汇带翻译c语言实用专业英语词汇带翻译c语言的学习跟一些相关专业的'英语学习密切相关,这也就意味着需要我们努力掌握c语言学习中实用英语专业词汇,只有掌握这些才能更好地学习c语言。
c语言实用专业英语词汇cascading if statement 级联if语句control expression 控制表达式infinite loop 无限循环loop-and -a-half problem 半途退出function prototype 函数原型function body 函数体predicate function 谓词函数formal parameter 形式参数local variable 局部变量frame 帧stack frame 栈帧return address 返回地址procedure 过程decomposition 分解top-down design 自顶向下的设计stepwise refinement 逐步精化modular arithmetic 取模运算number theory 数论c语言专业英语词汇prime 素数cryptography 密码学loop invariant 循环不变式desk-cheching 桌面检查testing 测试tradeoff 权衡numerical algorithm 数值算法successive approximation 连续逼近converge 收敛的error handling 错误处理series expansion 级数展开power series 幂级数portable 可移植implementor 实现者client 客户exporting 导出package 软件包abstraction 抽象coordinates 坐标text data 文本数据enumeration 枚举typedef 定义类型scalar type 标量类型c语言实用专业词汇character code 字符代码character constant 字符常量special character 特殊字符printing charater 可打印字符escape sequence 转义序列octal notation 八进制计数法primitive operation 基本操作module 模块main module 主模块pseudocode 伪代码token 记号lexical analysis 词法分析token scanning 记号扫描internal state 内部状态global variable 全局变量static 静态的private 私有的dynamic initialization 动态初始化static initialization 静态初始化default valued 默认值buffer 缓冲区。
C语言报错整理大全

C语言错误代码及错误信息错误释义error 1: Out of memory 内存溢出error 2: Identifier expected 缺标识符error 3: Unknown identifier 未定义的标识符error 4: Duplicate identifier 重复定义的标识符error 5: Syntax error 语法错误error 6: Error in real constant 实型常量错误error 7: Error in integer constant 整型常量错误error 8: String constant exceeds line 字符串常量超过一行error 10: Unexpected end of file 文件非正常结束error 11: Line too long 行太长error 12: Type identifier expected 未定义的类型标识符error 13: Too many open files 打开文件太多error 14: Invalid file name 无效的文件名error 15: File not found 文件未找到error 16: Disk full 磁盘满error 17: Invalid compiler directive 无效的编译命令error 18: Too many files 文件太多error 19: Undefined type in pointer def 指针定义中未定义类型error 20: Variable identifier expected 缺变量标识符error 21: Error in type 类型错误error 22: Structure too large 结构类型太长error 23: Set base type out of range 集合基类型越界error 24: File components may not be files or objectsfile分量不能是文件或对象error 25: Invalid string length 无效的字符串长度error 26: Type mismatch 类型不匹配error 27:error 27:Invalid subrange base type 无效的子界基类型error 28:Lower bound greater than upper bound 下界超过上界error 29:Ordinal type expected 缺有序类型error 30:Integer constant expected 缺整型常量error 31:Constant expected 缺常量error 32:Integer or real constant expected 缺整型或实型常量error 33:Pointer Type identifier expected 缺指针类型标识符error 34:Invalid function result type 无效的函数结果类型error 35:Label identifier expected 缺标号标识符error 36:BEGIN expected 缺BEGINerror 37:END expected 缺ENDerror 38:Integer expression expected 缺整型表达式error 39:Ordinal expression expected 缺有序类型表达式error 40:Boolean expression expected 缺布尔表达式error 41:Operand types do not match 操作数类型不匹配error 42:Error in expression 表达式错误error 43:Illegal assignment 非法赋值error 44:Field identifier expected 缺域标识符error 45:Object file too large 目标文件太大error 46:Undefined external 未定义的外部过程与函数error 47:Invalid object file record 无效的OBJ文件格式error 48:Code segment too large 代码段太长error 49:Data segment too large 数据段太长error 50:DO expected 缺DOerror 51:Invalid PUBLIC definition 无效的PUBLIC定义error 52:Invalid EXTRN definition 无效的EXTRN定义error 53: Too many EXTRN definitions 太多的EXTRN定义error 54:OF expected 缺OFerror 55:INTERFACE expected 缺INTERFACEerror 56:Invalid relocatable reference 无效的可重定位引用error 57:THEN expected 缺THENerror 58:TO or DOWNTO expected 缺TO或DOWNTO error 59:Undefined forward 提前引用未经定义的说明error 61:Invalid typecast 无效的类型转换error 62:Division by zero 被零除error 63:Invalid file type 无效的文件类型error 64:Cannot read or write variables of this type 不能读写此类型变量error 65:Pointer variable expected 缺指针类型变量error 66:String variable expected 缺字符串变量error 67:String expression expected 缺字符串表达式error 68:Circular unit reference 单元UNIT部件循环引用error 69:Unit name mismatch 单元名不匹配error 70:Unit version mismatch 单元版本不匹配error 71:Internal stack overflow 内部堆栈溢出error 72:Unit file format error 单元文件格式错误error 73:IMPLEMENTATION expected 缺IMPLEMENTATIONerror 74:Constant and case types do not match 常量和CASE类型不匹配error 75:Record or object variable expected 缺记录或对象变量error 76:Constant out of range 常量越界error 77:File variable expected 缺文件变量error 78:Pointer expression expected 缺指针表达式error 79:Integer or real expression expected 缺整型或实型表达式error 80:Label not within current block 标号不在当前块内error 81:Label already defined 标号已定义error 82:Undefined label in preceding statement part 在前面未定义标号error 83:Invalid @ argument 无效的@参数error 84:UNIT expected 缺UNITerror 85: ";" expected 缺“;”error 86:":" expected 缺“:”error 87:"," expected 缺“,”error 88:"(" expected 缺“(”error 89:")" expected 缺“)”error 90:"=" expected 缺“=”error 91:":=" expected 缺“:=”error 92:"[" or "(." Expected 缺“[”或“(.”error 93: "]" or ".)" expected 缺“]”或“.)”error 94:"." expected 缺“.”error 95: ".." expected 缺“..”error 96:Too many variables 变量太多error 97:Invalid FOR control variable 无效的FOR循环控制变量error 98:Integer variable expected 缺整型变量error 99:Files and procedure types are not allowed here 该处不允许文件和过程类型error 100:String length mismatch 字符串长度不匹配error 101:Invalid ordering of fields 无效域顺序error 102:String constant expected 缺字符串常量error 103:Integer or real variable expected 缺整型或实型变量error 104:Ordinal variable expected 缺有序类型变量error 105:INLINE error INLINE错误error 106:Character expression expected 缺字符表达式error 107:Too many relocation items 重定位项太多error 108:Overflow in arithmetic operation 算术运算溢出error 112:CASE constant out of range CASE常量越界error 113:Error in statement 表达式错误error 114:Cannot call an interrupt procedure 不能调用中断过程error 116:Must be in 8087 mode to compile this 必须在8087模式编译error 117:Target address not found 找不到目标地址error 118:Include files are not allowed here 该处不允许INCLUDE文件error 119:No inherited methods are accessible here 该处继承方法不可访问error 121:Invalid qualifier 无效的限定符error 122:Invalid variable reference 无效的变量引用error 123:Too many symbols 符号太多error 124:Statement part too large 语句体太长error 126:Files must be var parameters 文件必须是变量形参error 127:Too many conditional symbols 条件符号太多error 128:Misplaced conditional directive 条件指令错位error 129:ENDIF directive missing 缺ENDIF指令error 130:Error in initial conditional defines 初始条件定义错误error 131:Header does not match previous definition 和前面定义的过程或函数不匹配error 133:Cannot evaluate this expression 不能计算该表达式error 134:Expression incorrectly terminated 表达式错误结束error 135:Invalid format specifier 无效格式说明符error 136:Invalid indirect reference 无效的间接引用error 137:Structured variables are not allowed here 该处不允许结构变量error 138:Cannot evaluate without System unit 没有System单元不能计算error 139:Cannot access this symbol 不能存取符号error 140:Invalid floating point operation 无效的符号运算error 141:Cannot compile overlays to memory 不能编译覆盖模块至内存error 142:Pointer or procedural variable expected 缺指针或过程变量error 143:Invalid procedure or function reference 无效的过程或函数调用error 144:Cannot overlay this unit 不能覆盖该单元error 146:File access denied 不允许文件访问error 147:Object type expected 缺对象类型error 148:Local object types are not allowed 不允许局部对象类型error 149:VIRTUAL expected 缺VIRTUALerror 150: Method identifier expected 缺方法标识符error 151:Virtual constructors are not allowed 不允许虚构造函数error 152:Constructor identifier expected 缺构造函数标识符error 153:Destructor identifier expected 缺析构函数标识符error 154:Fail only allowed within constructors 只能在构造函数内使用Fail标准过程error 155:Invalid combination of opcode and operands 操作数与操作符无效组合error 156:Memory reference expected 缺内存引用指针error 157:Cannot add or subtract relocatable symbols 不能加减可重定位符号error 158:Invalid register combination 无效寄存器组合error 159:286/287 instructions are not enabled 未激活286/287指令error 160:Invalid symbol reference 无效符号指针error 161:Code generation error 代码生成错误error 162:ASM expected 缺ASMerror 166:Procedure or function identifier expected 缺过程或函数标识符error 167:Cannot export this symbol 不能输出该符号error 168:Duplicate export name 外部文件名重复error 169:Executable file header toerror 170:Too many segments 段太多fatal error C1004: unexpected end of file found 未找到文件末尾(可能是括号匹配问题)fatal error C1021: invalid preprocessor command '1nclude' 无效的编译预处理命令'1nclude' fatal error C1083: Cannot open include file: 'stdi.h': No such file or directory 不能打开头文件'stdi.h',文件或文件夹不存在 error C2101: '&' on constant 不能计算常量的地址error C2059: syntax error : 'while' 在'while'附近,存在语法错误error C2061: syntax error : identifier 'x' 标识符x的附近,存在语法错误 error C2065: 'i' : undeclared identifier 变量i未定义error C2078: too many initializers 数组/结构等变量初始化时的数据太多error C2087: '<Unknown>' : missing subscript 丢失数组下标error C2106: '=' : left operand must be l-value '='的左侧应当是左值,即不能是常量 error C2115: '=' : incompatible types '='两侧的类型不兼容error C2133: 'a' : unknown size a(可能是数组名)的大小不确定。
C语言常见错误提示中英译文

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 ------------------定义编译预处理需要标识符Division by zero ------------------用零作除数Do statement must have while ------------------ Do-while语句中缺少while部分Enum syntax error ---------------------枚举类型语法错误Enumeration constant syntax error -----------------枚举常数语法错误Error directive :xxx ------------------------错误的编译预处理命令Error writing output file ---------------------写输出文件错误Expression syntax error -----------------------表达式语法错误Extra parameter in call ------------------------调用时出现多余错误File name too long ----------------文件名太长Function call missing -----------------函数调用缺少右括号Fuction definition out of place ------------------函数定义位置错误Fuction should return a value ------------------函数必需返回一个值Goto statement missing label ------------------ Goto语句没有标号Hexadecimal or octal constant too large ------------------16进制或8进制常数太大Illegal character ''x'' ------------------非法字符xIllegal initialization ------------------非法的初始化Illegal octal digit ------------------非法的8进制数字Illegal pointer subtraction ------------------非法的指针相减Illegal structure operation ------------------非法的结构体操作Illegal use of floating point -----------------非法的浮点运算Illegal use of pointer --------------------指针使用非法Improper use of a typedefsymbol ----------------类型定义符号使用不恰当In-line assembly not allowed -----------------不允许使用行间汇编Incompatible storage class -----------------存储类别不相容Incompatible type conversion --------------------不相容的类型转换Incorrect number format -----------------------错误的数据格式Incorrect use of default --------------------- Default使用不当Invalid indirection ---------------------无效的间接运算Invalid pointer addition ------------------指针相加无效Irreducible expression tree -----------------------无法执行的表达式运算Lvalue required ---------------------------需要逻辑值0或非0值Macro argument syntax error -------------------宏参数语法错误Macro expansion too long ----------------------宏的扩展以后太长Mismatched number of parameters in definition ---------------------定义中参数个数不匹配Misplaced break ---------------------此处不应出现break语句Misplaced continue ------------------------此处不应出现continue语句Misplaced decimal point --------------------此处不应出现小数点Misplaced elif directive --------------------不应编译预处理elifMisplaced else ----------------------此处不应出现elseMisplaced else directive ------------------此处不应出现编译预处理elseMisplaced endif directive -------------------此处不应出现编译预处理endifMust be addressable ----------------------必须是可以编址的Must take address of memory location ------------------必须存储定位的地址No declaration for function ''xxx'' -------------------没有函数xxx的说明No stack ---------------缺少堆栈No type information ------------------没有类型信息Non-portable pointer assignment --------------------不可移动的指针(地址常数)赋值Non-portable pointer comparison --------------------不可移动的指针(地址常数)比较Non-portable pointer conversion ----------------------不可移动的指针(地址常数)转换Not a valid expression format type ---------------------不合法的表达式格式Not an allowed type ---------------------不允许使用的类型Numeric constant too large -------------------数值常太大Out of memory -------------------内存不够用Parameter ''xxx'' is never used ------------------能数xxx没有用到Pointer required on left side of -> -----------------------符号->的左边必须是指针Possible use of ''xxx'' before definition -------------------在定义之前就使用了xxx(警告)Possibly incorrect assignment ----------------赋值可能不正确Redeclaration of ''xxx'' -------------------重复定义了xxxRedefinition of ''xxx'' is not identical ------------------- xxx的两次定义不一致Register allocation failure ------------------寄存器定址失败Repeat count needs an lvalue ------------------重复计数需要逻辑值Size of structure or array not known ------------------结构体或数给大小不确定Statement missing ; ------------------语句后缺少";"Structure or union syntax error --------------结构体或联合体语法错误Structure size too large ----------------结构体尺寸太大Sub scripting missing ] ----------------下标缺少右方括号Superfluous & with function or array ------------------函数或数组中有多余的"&"Suspicious pointer conversion ---------------------可疑的指针转换Symbol limit exceeded ---------------符号超限Too few parameters in call -----------------函数调用时的实参少于函数的参数不Too many default cases ------------------- Default太多(switch语句中一个)Too many error or warning messages --------------------错误或警告信息太多Too many type in declaration -----------------说明中类型太多Too much auto memory in function -----------------函数用到的局部存储太多Too much global data defined in file ------------------文件中全局数据太多Two consecutive dots -----------------两个连续的句点Type mismatch in parameter xxx ----------------参数xxx类型不匹配Type mismatch in redeclaration of ''xxx'' ---------------- xxx重定义的类型不匹配Unable to create output file ''xxx'' ----------------无法建立输出文件xxxUnable to open include file ''xxx'' ---------------无法打开被包含的文件xxxUnable to open input file ''xxx'' ----------------无法打开输入文件xxxUndefined label ''xxx'' -------------------没有定义的标号xxxUndefined structure ''xxx'' -----------------没有定义的结构xxxUndefined symbol ''xxx'' -----------------没有定义的符号xxxUnexpected end of file in comment started on line xxx ----------从xxx行开始的注解尚未结束文件不能结束Unexpected end of file in conditional started on line xxx ----从xxx 开始的条件语句尚未结束文件不能结束Unknown assemble instruction ----------------未知的汇编结构Unknown option ---------------未知的操作Unknown preprocessor directive: ''xxx'' -----------------不认识的预处理命令xxxUnreachable code ------------------无路可达的代码Unterminated string or character constant -----------------字符串缺少引号User break ----------------用户强行中断了程序Void functions may not return a value ----------------- Void类型的函数不应有返回值Wrong number of arguments -----------------调用函数的参数数目错''xxx'' not an argument ----------------- xxx不是参数''xxx'' not part of structure -------------------- xxx不是结构体的一部分xxx statement missing ( -------------------- xxx语句缺少左括号xxx statement missing ) ------------------ xxx语句缺少右括号xxx statement missing ; -------------------- xxx缺少分号xxx'' declared but never used -------------------说明了xxx但没有使用xxx'' is assigned a value which is never used ----------------------给xxx赋了值但未用过Zero length structure ------------------结构体的长度为零。
c语言经典错误

C语言命语法错误大全C语言命语法错误大全fatalerrorC1004: unexpectedendoffilefound未找到文件末尾(可能是括号匹配问题)fatalerrorC1021: invalidpreprocessorcommand'1nclude'无效的编译预处理命令'1nclude'fatalerrorC1083: Cannotopenincludefile: 'stdi.h': Nosuchfileordirectory 不能打开头文件'stdi.h',文件或文件夹不存在errorC2101: '&' onconstantC语言命语法错误大全fatalerrorC1004: unexpectedendoffilefound未找到文件末尾(可能是括号匹配问题)fatalerrorC1021: invalidpreprocessorcommand'1nclude'无效的编译预处理命令'1nclude'fatalerrorC1083: Cannotopenincludefile: 'stdi.h': Nosuchfileordirectory 不能打开头文件'stdi.h',文件或文件夹不存在errorC2101: '&' onconstant不能计算常量的地址errorC2059: syntaxerror: 'while'在'while'附近,存在语法错误errorC2061: syntaxerror: identifier'x'标识符x的附近,存在语法错误errorC2065: 'i' : undeclaredidentifier变量i未定义errorC2078: toomanyinitializers数组/结构等变量初始化时的数据太多errorC2087: '<Unknown>' : missingsubscript 丢失数组下标errorC2106: '=' : leftoperandmustbel-value '='的左侧应当是左值,即不能是常量errorC2115: '=' : incompatibletypes'='两侧的类型不兼容errorC2133: 'a' : unknownsizea(可能是数组名)的大小不确定。
C语言中英文对照

C语言中英文对照一.C语言关键字对照关键字,又称保留字,是C语言中已预先定义、具有特定含义的标识符。
注:C语言中共有32个关键字,所有关键字都用小写字母表示,且这些关键字不能用作用户标识符。
即关键字由系统定义,具有特定的含义,不能重作其它定义。
32个关键字如下:1.数据定义C语言中所有的变量都具有某种类型,其定义的基本格式是:类型变量名;int:整型short:短整型long:长整型signed:有符号型unsigned:无符号型char:字符型float:单精度型double:双精度型const:定义常量typedef:类型定义2.存储类别一般在变量的定义前面,用于指定变量的存储类别,如果缺省的话,则默认是auto。
auto:自动变量static:静态变量register:寄存器变量extern:外部变量3结构C语言中除了提供一些基本数据类型外,还提供了结构体,共有体以及枚举,用来实现多个变量的集合表示。
struct:结构体union:共用体enum:枚举类型4语句C语言中提供了一些语句来实现程序的基本结构。
if:条件判断(假如)else:不满足条件(否则)for:循环do:与while一起使用,直到型循环while:当型循环goto:无条件跳转语句switch:多分支选择语句case:分支,在switch语句块中表示不同的分支default:缺省,一般在switch语句中使用continue:继续(结束本次循环)break:中断(跳出整个循环)return:返回void:空类型(用于函数没有返回值时)5.预处理#define:定义一个宏名来代替一个字符串#include:引入程序所需要的头文件#undef:条件编译#ifdef:假如定义#ifndef:假如没有定义6.其他sizeof:用于计算所占内存空间的大小volatile:C语言关键字volatile(注意它是用来修饰变量而不是上面介绍的__volatile__)表明某个变量的值可能在外部被改变,因此对这些变量的存取不能缓存到寄存器,每次使用时需要重新存取二.Turboc2.0 环境中常用的关键词File(文件)Load(加载)New(新建)Save(保存)Write to(另存为)Directory(目录)Change dir(改变目录)Quit(结束)Run(运行)Program reset(程序重置)Goto cursor(运行到光标处)Trace into(跟踪)Step over(单部执行)Compile(编译)Compile to obj(编译成目标文件)Make EXE file(制作可执行文件)Link EXE file(链接可执行文件)Build all(创建全部)Options(选项)Compiler(编译)Linker(链接)Environment(环境)Directorie(目录)Edit(编辑)Debug(调试)Break/Watch(中断/观测)Add watch(增加观察变量)Delete watch(删除观察变量)Remove all watch(删除所有的观察变量)Toggle breakpoint (触发断点)Clear all breakpoint (清除所有断点)View next breakpoint (查看下一个断点)三.计算机软硬件相关词汇1. ALU arithmetic logic unit :算术逻辑单元2. CPU central processing unit :中央处理器单元3. PC personal computer:个人计算机4. workstation :工作站5 .supercomputer:超级计算机6. LAN local area network:局域网7. hardware :硬件8. software:软件9. processor:处理器10. microprocessor:微处理器11. memory:内存12. OS operating System:操作系统13. spreadsheet :电子制表软件14. database management:数据库管理系统15. binary:二进制16.machine language:机器语言17.assembly language:汇编语言18. real-time :实时19. syntax: 语法20. ANSI American National Standards Institute 美国国家标准化组织21. ASCII American Standard Code for Information Interchange 美国信息交换标准码22 ADC Analog-Digital Converter 模-数转换器23. DAC Digital-Analog Converter 数-模转换器24. DSP Digital Signal Processing 数字信号处理25. XOR Exclusive or 异或四. 程序编译运行所涉及的词汇:1. Compiler:编译2. bugs: 错误:计算机程序中代码或例行程序上的瑕疵3. compiler errors: 编译错误4. debugging: 调试5. source program:源程序6. object program:目标程序7. execution :执行8. linking:连接(链接)9. loading: 加载,载入10. logic errors:逻辑错误11. assembler: 汇编器12. I/O diagram: 输入输出图表。
c语言语句中英对照表

c语言语句中英对照表运算符与表达式:运算符与表达式constant['k?nst?nt]运算符与表达式variable['v??ri?bl]运算符与表达式identify[ai'dentifai]运算符与表达式 keywords运算符与表达式 sign[sain]运算符与表达式 operator['?p?,reit?]运算符与表达式statement['steitm?nt]运算符与表达式syntax['sint?ks]运算符与表达式 expression运算符与表达式 initialition运算符与表达式 number format运算符与表达式 declaration运算符与表达式 type conversion运算符与表达式 define条件语句select条件语句expression条件语句logical expression条件语句Relational expression条件语句priority条件语句operation条件语句structure循环语句 circle循环语句 condition循环语句 variant循环语句 process循环语句 priority循环语句 operation数组array数组reference数组element数组address数组sort数组character数组string数组application函数:call函数:return value函数:function函数:declare函数:parameter函数:static函数:extern指针:argument指针:array指针:declaration指针:represent指针:manipulate结构体共用体链表1structure 结构体共用体链表2member 结构体共用体链表3tag结构体共用体链表4function 结构体共用体链表5enumerate 结构体共用体链表6union结构体共用体链表7create结构体共用体链表8insert结构体共用体链表9delete结构体共用体链表10 modify 文件1file文件2open文件3close文件4read文件5write文件6error文件7Program Design文件8writing program文件9standardize vt.文件10coding the program 文件11simplify vt. 文件12programming文件13revision n.文件14programmer n.文件15occupy vt.文件16logic n.文件17BASIC文件18machine code文件19teaching language文件20debug n.DOS文件21simplicity n.文件22compactness a.文件23timesharing system 文件24description n. 文件25interactive language 文件26break n.文件27manufacturer n.文件28structure chart文件30the program flow文件31expense n.文件32manager module文件33uniformity n.文件34worder module文件35archaic a.文件36mainmodule文件37sufficient a.文件38submodule文件39data processing文件40modify v.文件41business application 文件42outline n.文件43scientific application 文件44compose文件45lexical a.文件46code文件47non-programmer n.文件48node vt文件49notation n.文件50pseudocode n.文件51verbosity n.文件52commas n.文件53record n.文件54documentation文件55subrecord n.文件56flowchart/flow文件57data division文件58visual a.文件59procedure division文件60represent vt.文件61comprise vt.文件62structured techniques 文件63operator n. 文件64straightforward a.文件65commercial package文件66subroutine n.文件67generator n.文件68driver module文件69mathematician n.文件70line by line文件71operator n.文件72translate vt.文件74modular文件75ancestor n.文件76cumbersome a.文件77teaching programming 文件78lengthy a. 文件79alter vi./vt.文件80flaw n.文件81devclop vt.文件82separate a.文件83recompile v.文件84assist n.文件85cycle n.文件86technician n.文件87remove vt.文件88straight line文件89category n.文件90rectangle n.文件91P-code p文件92virtrally ad.文件93symology n.文件94register n.文件95to summaries文件96by convention文件97cyptic n.文件98diamond-shaped a,文件99bracket n.文件100decision n文件101obviate文件102terminal n. a文件103keyword n.文件104card reader文件105underline vt.文件106translator program 文件107monadic a. monad( 文件108Programming文件109dec/binary n.文件110source language文件111shift文件112machine language文件113overflow n.文件114machine instruction 文件115arithmetic n.文件116computer language文件118assembly language文件119assignment n.文件120floating point number 文件121proliferation n.文件122high-level language 文件123pointer n.文件124natural language文件125array n.文件126source text文件127subscript n.文件128intermediate language 文件129type conversion 文件130software development 文件131address arithmetic 文件132map vt.文件133denote vt.文件134maintenance cost文件135subprogram n.文件136legibility n.文件137separate compilation 文件138amend vt.文件139alphabetic a.文件140consumer n.文件141digit n.文件142enormous a.文件143numeric expression文件144reliability n.文件145tap n.文件146safety n.文件147print zone文件148property n.文件149column n.文件150correctness n.文件151functionality n.文件152semicolon n.文件153portable a.文件154survey n.文件155altoggle n.文件156task n.文件157declaration n.文件158source program文件159mufti-dimension array 文件160object program 其他提示语4ROM(Read Only Memory)其他提示语5Floppy Disk其他提示语6Hard Disk其他提示语7CD-ROM其他提示语8monitor其他提示语9keyboard其他提示语10mouse其他提示语11chip其他提示语12CD-R其他提示语14Modem= MOdulator-DEModulator,其他提示语15P-P(Plug and Play)其他提示语16UPS(Uninterruptable PowerSupply)其他提示语17System)其他提示语18CMOS(Complementary Metal-Oxide-Semiconductor)其他提示语19setup其他提示语20uninstall其他提示语21wizzard其他提示语22OS(Operation Systrem)其他提示语23OA(Office AutoMation)其他提示语24exit其他提示语25edit其他提示语26copy其他提示语27cut其他提示语28paste其他提示语29delete其他提示语30select其他提示语31find其他提示语32select all其他提示语33replace其他提示语34undo其他提示语35redo其他提示语36program其他提示语37license其他提示语38back其他提示语39next其他提示语40finish其他提示语42Destination Folder其他提示语43user其他提示语44click其他提示语48update其他提示语49release其他提示语50data其他提示语51data base其他提示语52System)其他提示语53view其他提示语54insert其他提示语55object其他提示语56configuration其他提示语57command其他提示语58document其他提示语59POST(power-on-self-test)其他提示语60cursor 其他提示语61attribute其他提示语62icon其他提示语63service pack其他提示语64option pack其他提示语65Demo其他提示语66short cut其他提示语67exception其他提示语68debug其他提示语69previous其他提示语70column其他提示语71row其他提示语72restart其他提示语73text其他提示语74font其他提示语76scale其他提示语77interface其他提示语78function其他提示语79access其他提示语80manual其他提示语81active其他提示语82computer language 其他提示语83menu其他提示语84interfaces )其他提示语85template其他提示语86page setup其他提示语87password其他提示语88code其他提示语90zoom in其他提示语91zoom out其他提示语92pan其他提示语93cruise其他提示语94full screen其他提示语95tool bar其他提示语96status bar其他提示语97ruler其他提示语98table其他提示语99paragraph其他提示语100symbol其他提示语101style其他提示语102execute其他提示语103graphics其他提示语104image其他提示语105Unix其他提示语106Mac OS其他提示语107OO(Object-Oriented)其他提示语108virus其他提示语109file其他提示语110open其他提示语111colse其他提示语112new其他提示语113save其他提示语114exit其他提示语115clear其他提示语116default其他提示语117LAN其他提示语118WAN其他提示语119Client/Server其他提示语120Transfer Mode)其他提示语121Windows NT其他提示语122Internet其他提示语123WWW(World Wide Web)其他提示语124protocol其他提示语125HTTP其他提示语126FTP其他提示语127Browser其他提示语128homepage其他提示语129Webpage其他提示语130website其他提示语131URL用于指定信息位置的表示方法1Online用于指定信息位置的表示方法3ICQ用于指定信息位置的表示方法4Firewall用于指定信息位置的表示方法5Gateway用于指定信息位置的表示方法6HTML用于指定信息位置的表示方法7hypertext 用于指定信息位置的表示方法8hyperlink 用于指定信息位置的表示方法9IP(Address) 用于指定信息位置的表示方法10SearchEngine用于指定信息位置的表示方法11TCP/IP用于指定信息位置的表示方法12Telnet用于指定信息位置的表示方法13IE(Internet Explorer)用于指定信息位置的表示方法14Navigator用于指定信息位置的表示方法15multimedia用于指定信息位置的表示方法16ISO用于指定信息位置的表示方法17ANSI用于指定信息位置的表示方法18able用于指定信息位置的表示方法19activefile用于指定信息位置的表示方法20addwatch用于指定信息位置的表示方法21allfiles用于指定信息位置的表示方法22allrightsreserved用于指定信息位置的表示方法23altdirlst用于指定信息位置的表示方法24andfixamuchwiderrangeofdiskprobl ems用于指定信息位置的表示方法25andotherinFORMation用于指定信息位置的表示方法26archivefileattribute用于指定信息位置的表示方法27assignto用于指定信息位置的表示方法28autoanswer用于指定信息位置的表示方法29autodetect用于指定信息位置的表示方法30autoindent用于指定信息位置的表示方法31autosave用于指定信息位置的表示方法32availableonvolume用于指定信息位置的表示方法33badcommand用于指定信息位置的表示方法34badcommandorfilename用于指定信息位置的表示方法35batchparameters用于指定信息位置的表示方法36binaryfile用于指定信息位置的表示方法37binaryfiles用于指定信息位置的表示方法38borlandinternational borland 用于指定信息位置的表示方法39bottommargin用于指定信息位置的表示方法40bydate用于指定信息位置的表示方法41byextension用于指定信息位置的表示方法42byname用于指定信息位置的表示方法43bytesfree用于指定信息位置的表示方法44callstack用于指定信息位置的表示方法45casesensitive用于指定信息位置的表示方法47centralpointsoftwareinc central point用于指定信息位置的表示方法48changedirectory用于指定信息位置的表示方法49changedrive用于指定信息位置的表示方法50changename用于指定信息位置的表示方法51characterset用于指定信息位置的表示方法52checkingfor用于指定信息位置的表示方法53checksadiskanddisplaysastatusrep ort用于指定信息位置的表示方法54chgdrivepath用于指定信息位置的表示方法55node用于指定信息位置的表示方法56npasswd UNIX用于指定信息位置的表示方法57OSPF用于指定信息位置的表示方法58OSI Model用于指定信息位置的表示方法59out-of-band attack用于指定信息位置的表示方法60packet filter用于指定信息位置的表示方法61password用于指定信息位置的表示方法62path用于指定信息位置的表示方法63payload用于指定信息位置的表示方法65PCS用于指定信息位置的表示方法66peer用于指定信息位置的表示方法67permission用于指定信息位置的表示方法68plaintext用于指定信息位置的表示方法69PPTP用于指定信息位置的表示方法70port用于指定信息位置的表示方法71prority用于指定信息位置的表示方法72protocol用于指定信息位置的表示方法73potential browser 用于指定信息位置的表示方法74POP用于指定信息位置的表示方法75IMAP用于指定信息位置的表示方法76process用于指定信息位置的表示方法77proxy用于指定信息位置的表示方法78proxy server用于指定信息位置的表示方法79用于指定信息位置的表示方法80paseudorandom 用于指定信息位置的表示方法81phreaking用于指定信息位置的表示方法82RAS用于指定信息位置的表示方法83Remote control 用于指定信息位置的表示方法84RPC用于指定信息位置的表示方法85remote boot用于指定信息位置的表示方法86route用于指定信息位置的表示方法87router用于指定信息位置的表示方法88routing用于指定信息位置的表示方法89RIP用于指定信息位置的表示方法91routing table用于指定信息位置的表示方法93RSA用于指定信息位置的表示方法94script用于指定信息位置的表示方法95search engine用于指定信息位置的表示方法96SSL用于指定信息位置的表示方法97secure用于指定信息位置的表示方法98SID用于指定信息位置的表示方法99sender用于指定信息位置的表示方法100SLIP用于指定信息位置的表示方法101server用于指定信息位置的表示方法102server-based network 用于指定信息位置的表示方法103session layer用于指定信息位置的表示方法104share用于指定信息位置的表示方法105share-level security 用于指定信息位置的表示方法106SMTP用于指定信息位置的表示方法107SNMP用于指定信息位置的表示方法108Site用于指定信息位置的表示方法109SCSI用于指定信息位置的表示方法110snffer用于指定信息位置的表示方法111snooping用于指定信息位置的表示方法112standalone server用于指定信息位置的表示方法113strong cipher用于指定信息位置的表示方法114stream cipher用于指定信息位置的表示方法115strong password用于指定信息位置的表示方法116SQL用于指定信息位置的表示方法117subnet mask用于指定信息位置的表示方法118subdirectory用于指定信息位置的表示方法119subnet用于指定信息位置的表示方法120swap file用于指定信息位置的表示方法121SACL用于指定信息位置的表示方法123sniffer用于指定信息位置的表示方法124spoofing用于指定信息位置的表示方法125time bomb用于指定信息位置的表示方法126TCPDUMP用于指定信息位置的表示方法127Traceroute用于指定信息位置的表示方法128T0,DS0 56用于指定信息位置的表示方法129T1,DS1 24用于指定信息位置的表示方法130T3,DS3 28用于指定信息位置的表示方法131thin client用于指定信息位置的表示方法132thread用于指定信息位置的表示方法133throughput用于指定信息位置的表示方法135Transport Protocol 用于指定信息位置的表示方法136trust用于指定信息位置的表示方法137tunnel用于指定信息位置的表示方法138vector of attack 用于指定信息位置的表示方法139Virtual directory 用于指定信息位置的表示方法140Virtual Machine 用于指定信息位置的表示方法141VRML用于指定信息位置的表示方法142volume用于指定信息位置的表示方法143vulnerability用于指定信息位置的表示方法144weak passwurd用于指定信息位置的表示方法145well-known ports 用于指定信息位置的表示方法146workstation用于指定信息位置的表示方法147X.25用于指定信息位置的表示方法148zone transfer用于指定信息位置的表示方法149authentication用于指定信息位置的表示方法150authorization用于指定信息位置的表示方法151Back Office Microsoft 用于指定信息位置的表示方法152Back up用于指定信息位置的表示方法153backup browser用于指定信息位置的表示方法154BDC用于指定信息位置的表示方法155baseline用于指定信息位置的表示方法156BIOS用于指定信息位置的表示方法157Binding用于指定信息位置的表示方法158bit用于指定信息位置的表示方法159BOOTP用于指定信息位置的表示方法160BGP用于指定信息位置的表示方法161Bottleneck用于指定信息位置的表示方法162bridge用于指定信息位置的表示方法163browser用于指定信息位置的表示方法164browsing用于指定信息位置的表示方法165channel 用于指定信息位置的表示方法166CSU/DSU用于指定信息位置的表示方法167Checksum用于指定信息位置的表示方法168Cluster用于指定信息位置的表示方法169CGI用于指定信息位置的表示方法170CGI用于指定信息位置的表示方法171CGI-based attack用于指定信息位置的表示方法172用于指定信息位置的表示方法173crash用于指定信息位置的表示方法174CD-ROM用于指定信息位置的表示方法175Component用于指定信息位置的表示方法176data link用于指定信息位置的表示方法177---- include用于指定信息位置的表示方法178stdio.h用于指定信息位置的表示方法179void用于指定信息位置的表示方法180main用于指定信息位置的表示方法181printf用于指定信息位置的表示方法182IDE(Integrated Development Environment)用于指定信息位置的表示方法183source File用于指定信息位置的表示方法184warning用于指定信息位置的表示方法185Project用于指定信息位置的表示方法186------ int用于指定信息位置的表示方法187short int用于指定信息位置的表示方法188unsigned short int用于指定信息位置的表示方法189long int用于指定信息位置的表示方法190float用于指定信息位置的表示方法191double用于指定信息位置的表示方法192char用于指定信息位置的表示方法193scanf用于指定信息位置的表示方法194getchar()用于指定信息位置的表示方法195putchar()用于指定信息位置的表示方法196variable用于指定信息位置的表示方法197Compiler用于指定信息位置的表示方法199Date type用于指定信息位置的表示方法200Console用于指定信息位置的表示方法201Declaration用于指定信息位置的表示方法202Initialization用于指定信息位置的表示方法203------ TRUE用于指定信息位置的表示方法204FALSE用于指定信息位置的表示方法205if用于指定信息位置的表示方法206else用于指定信息位置的表示方法207Sizeof用于指定信息位置的表示方法208------ Switch用于指定信息位置的表示方法209case用于指定信息位置的表示方法210break用于指定信息位置的表示方法211default用于指定信息位置的表示方法212------ While用于指定信息位置的表示方法215用于指定信息位置的表示方法216Counter用于指定信息位置的表示方法217fflush用于指定信息位置的表示方法218------ Array用于指定信息位置的表示方法219dimension用于指定信息位置的表示方法220Single Dimensional Array用于指定信息位置的表示方法221Double Dimensional Array用于指定信息位置的表示方法222Multiplication dimensional Array用于指定信息位置的表示方法223sorting用于指定信息位置的表示方法224Bubble sort用于指定信息位置的表示方法225Ascending order用于指定信息位置的表示方法226Descending order用于指定信息位置的表示方法227subscript用于指定信息位置的表示方法229Row用于指定信息位置的表示方法230column用于指定信息位置的表示方法231traverse用于指定信息位置的表示方法232------ pointer用于指定信息位置的表示方法233Address用于指定信息位置的表示方法234Base Address用于指定信息位置的表示方法235Memory Member用于指定信息位置的表示方法236Relational operator用于指定信息位置的表示方法237Arithmetic operator用于指定信息位置的表示方法238Assignment operator 用于指定信息位置的表示方法239Logical operator用于指定信息位置的表示方法240------ function用于指定信息位置的表示方法241Build-in function用于指定信息位置的表示方法242User Defined Function 用于指定信息位置的表示方法243Recursive function用于指定信息位置的表示方法244Random用于指定信息位置的表示方法245power用于指定信息位置的表示方法246prototype用于指定信息位置的表示方法247void用于指定信息位置的表示方法248Called function用于指定信息位置的表示方法249Calling function用于指定信息位置的表示方法250return用于指定信息位置的表示方法251------ scope用于指定信息位置的表示方法252Parameter用于指定信息位置的表示方法253Parameterized function 用于指定信息位置的表示方法254Local variable用于指定信息位置的表示方法255Global variable用于指定信息位置的表示方法256static用于指定信息位置的表示方法257auto259用于指定信息位置的表示方法260Formal parameter 用于指定信息位置的表示方法261Actual parameter 用于指定信息位置的表示方法262Call by reference 用于指定信息位置的表示方法263Call by value用于指定信息位置的表示方法264------ String用于指定信息位置的表示方法265String literal用于指定信息位置的表示方法266sequence用于指定信息位置的表示方法267queue用于指定信息位置的表示方法268Puts()用于指定信息位置的表示方法269Gets()用于指定信息位置的表示方法270string.h用于指定信息位置的表示方法271strlen()用于指定信息位置的表示方法272strcpy()用于指定信息位置的表示方法273strcmp()用于指定信息位置的表示方法274strcat()用于指定信息位置的表示方法275------ struct用于指定信息位置的表示方法276stack用于指定信息位置的表示方法277structure用于指定信息位置的表示方法278Structured programming用于指定信息位置的表示方法279member(Common Gateway Interface公用网关接口是一个可以产生相同结果或结而变化的程序。
(完整版)C语言编程必背单词

(完整版)C语言编程必背单词C语言必背单词运算符与表达式: 1.constant 常量 2. variable 变量 3. identify 标识符4. keywords 关键字5. sign 符号6. operator 运算符7. statement语句 8. syntax 语法 9. expression 表达式 10. initialition 初始化 11. number format 数据格式12 declaration 说明 13. type conversion 类型转换14.define 、definition 定义条件语句: 1.select 选择 2. expression 表达式 3. logical expression 逻辑表达式4. Relational expression 关系表达式5.priority优先6. operation运算 7.structure 结构循环语句: 1.circle 循环2. condition 条件3. variant 变量4. process过程5.priority优先6. operation运算数组:1. array 数组2. reference 引用3. element 元素 4. address 地址 5. sort 排序 6. character 字符 7. string 字符串 8. application 应用函数:1.call 调用2.return value 返回值3.function 函数4. declare 声明5. `parameter 参数 6.static 静态的 7.extern 外部的指针:1. pointer 指针2. argument 参数3. array 数组4. declaration 声明5. represent 表示6. manipulate 处理结构体、共用体、链表: 1 structure 结构 2 member成员 3 tag 标记 4 function 函数 5 enumerate 枚举 6 union 联合(共用体)7 create 创建 8 insert 插入 9 delete 删除 10 modify 修改文件: 1、file 文件 2、open 打开 3、close 关闭 4、read 读 5、write 写 6、error 错误序号主要章节常用英汉对照词汇备注 1 运算符与表达式(operatorandexpression )汉语英语常量 constant 变量 variable 标识符 identify 关键字 keywords 符号 sign运算符 operator语句 statement 语法 syntax表达式Expression 初始化Initialization 数据格式number format说明 Declaration 类型转换 type conversion定义 Define 、 definition 2 条件语句( conditionstatement) 选择select 表达式expression 逻辑表达式logical expression关系表达式 Relational expression 优先 priority 运算 operation 结构 structure 3 循环语句(circle statement) 循环 circle条件 condition 变量 variant 过程 process 优先 priority 运算 operation 4 函数(function) 调用call 返回值return value 函数function 声明declare 参数 parameter 静态的 static外部的 extern 5 数组和指针 (array andpointer) 数组 array 引用 reference 元素 element 地址 address 2排序 sort 字符 character 字符串 string 应用 application 指针 pointer 参数 argument 数组 array 声明 declaration 表示 represent 处理 manipulate 6 结构体、共用体(structures 、 union )结构 structure 成员 member 标记 tag函数 function 枚举 enumerate联合 ( 共用体 ) union 创建 create 插入 insert 删除 delete 修改 modify 7 文件( file) 文件 file 打开 open 关闭 close 读 read 写 write 错误 errorProgram Design 程序设计writing program 编写程序standardize vt.使标准化coding the program 编程simplify vt.单一化,简单化programming 程序 revision n.校订,修正 programmer n.程序员 occupy vt.占领,住进 logic n.逻辑,逻辑学 BASIC 初学者通用符号指令代码machine code 机器代码teaching language 教学语言debug n.DOS命令,调试 simplicity n.单纯,简朴 compactness a.紧凑的,紧密的timesharing system 分时系统description n.描述,说明interactive language 交互式语言break n.中断 manufacturer n.制造业者structure chart 结构图 dialect n.方言,语调the program flow 程序流expense n.费用,代价 manager module 管理模块 uniformity n.同样,划一worder module 工作模块archaic a.己废的,古老的mainmodule 主模块sufficient a.充分的,足够的submodule 子模块data processing 数据处理 modify v.修正,修改 business application 商业应用outline n.轮廓,概要 scientific application 科学应用compose分解lexical a.字典的,词汇的 code 代码 non-programmer n.非编程人员node vt改为密码 notation n.记号法,表示法,注释pseudocode n.伪代码 verbosity n.唠叨,冗长 commas n.逗点逗号 record n.记录documentation 文档subrecord n.子记录flowchart/flow 程表/流程 data division 数据部 visual a.视觉的 procedure division 过程部 represent vt.表现,表示,代表comprise vt.包含构成 structured techniques结构化技术 operator n.运算符,算子 straightforward a.笔直的,率直的commercial package 商业软件包subroutine n.子程序generator n.产生器,生产者driver module 驱动模块mathematician n.专家 line by line 逐行 operator n.作符translate vt.翻译,解释forerunner n.先驱modular 摸块化ancestor n.祖宗cumbersome a.讨厌的,麻烦的teaching programming 编程教学lengthy a.冗长的,漫长的 alter vi./vt.改变flaw n.缺点裂纹 devclop vt.发达separate a.各别的 recompile v.编译 assist n.帮助 cycle n.循环technician n.技师remove vt.移动,除去straight line 直线category n.种类,类项rectangle n.长方形,矩形 P-code p代码virtrally ad.事实上3symology n.象征学象征的使用register n.寄存器 to summaries 总之,总而言之by convention 按照惯例 cyptic n.含义模糊的,隐藏的diamond-shaped a,菱形的 bracket n.括号decision n判断obviate 除去,排除 terminal n. a终端机,终端的keyword n.关键字card reader 阅读器 underline vt.下划线translator program 译程序 monadic a. monad(单位)的Programming 程序设计 dec/binary n.二进制 source language 源语shift 变化,转移,移位 machine language 机器 overflow n.溢出machine instruction 机器指令arithmetic n.算术,算法 computer language 计算机语composite symbol 复合型符号.assembly language 汇编语assignment n.赋值floating point number浮点数proliferation n.增服 high-level language高级语 pointer n.指针natural language 自然语言 array n.数组矩阵,source text 源文本 subscript n.下标intermediate language 中间语言type conversion 类型转换 software development 软件开发address arithmetic 地址运算 map vt.映射,计划denote vt.指示,表示 maintenance cost 维护费用subprogram n.子程序legibility n.易读性,易识别separate compilation 分离式编泽amend vt.修正,改善 alphabetic a.照字母次序的 consumer n.消费者 digit n.数字位数enormous a.巨大的,庞大的numeric expression 数值表达式 reliability n.可信赖性,可信度tap n.轻打,轻敲,选择 safety n.安全,安全设备 print zone 打印区property n.财产,所有权 column n.列correctness n.正确, functionality n.机能 semicolon n.分号portable a.叮携带的,可搬运的survey n.概观. altoggle n.肘节开关 task n.作,任务declaration n.宣告说明source program 源程序mufti-dimension array 多维数组 object program 目标程序。
C语言常用英语单词翻译

1. 数据类型关键字(12个): (1). char :声明字符型变量或函数 (2). double :声明双精度变量或函数 (3). enum :声明枚举类型 (4). float:声明浮点型变量或函数 (5). int:声明整型变量或函数 (6). long :声明长整型变量或函数 (7). short :声明短整型变量或函数 (8). signed:声明有符号类型变量或函数 (9). struct:声明结构体变量或函数 (10). union:声明联合数据类型 (11). unsigned:声明无符号类型变量或函数 (12). void :声明函数无返回值或无参数,声明无类型指针(基本上就这三个作用) (2)控制语句关键字(12个): A.循环语句 (1). for:一种循环语句(可意会不可言传) (2). do :循环语句的循环体 (3). while :循环语句的循环条件 (4). break:跳出当前循环 (5). continue:结束当前循环,开始下一轮循环 B.条件语句 (1).if: 条件语句 (2).else :条件语句否定分支(与 if 连用) (3).goto:无条件跳转语句 C.开关语句 (1).switch :用于开关语句 (2).case:开关语句分支 (3).default:开关语句中的“其他”分支 D.return :子程序返回语句(可以带参数,也看不带参数) 3. 存储类型关键字(4个): (1).auto :声明自动变量一般不使用 (2).extern:声明变量是在其他文件正声明(也可以看做是引用变量) (3).register:声明积存器变量 (4). static :声明静态变量 4. 其它关键字(4个): (1).const :声明只读变量 (2).sizeof:计算数据类型长度 (3).typedef:用以给数据类型取别名(当然还有其他作用) (4).volatile:说明变量在程序执行中可被隐含地改变 1、算法 程序处理数据的流程被称为算法,算法可以用言语描述,也可以用流程图描述.2、程序 不管用什么语言来表达的对问题的描述,通常都称为程序。
C语言常见错误中英文对照表

error error error error error error
C2051 C2052 C2057 C2058 C2059 C2064
case expression not constant 'type' illegal type for case expression expected constant expression constant expression is not integral syntax error 'xxx' term does not evaluate to a function 'xxx' undeclared identifier too many initializers redefinition of formal parameter 'xxx' function 'xxx' already has a body 'xxx' redefinition missing
C2133 C2137 C2143 C2146 C2144 C2181 C2196 C2296 C2297 C2371 C2440 C2447 C2448 C2450 C2466 C2601 C2632 C2660 C4716 1104 1168
'xxx'
unknown size
数组xxx长度未知
empty character constant 字符型常量为空 syntax error missing 在标识符或语言符号2前漏写语 'token1' before 'token2' 言符号1 syntax error missing 在标识符或语言符号2前漏写语 'token1' before identifier 言符号1 'identifier' syntax error missing ')' 在xxx类型前缺少‘) ’ before type 'xxx' illegal else without 非法的没有与if相匹配的else matching if case value '0' already case值0已使用 used '%' illegal, left operand has type 'float' '%' illegal, right operand has type 'float' 'xxx' redefinition; different basic types '=' cannot convert from 'char [2]' to 'char' missing function header (old-style formal list?) %运算的左(右)操作数类型为 float,这是非法的 %运算的左(右)操作数类型为 float,这是非法的 标识符xxx重定义;基类型不同 赋值运算,无法从字符数组转 换为字符 缺少函数标题(是否是老式的形 式表?)
C语言编译错误总结

非常实用的,吸收前辈的经验,我们才能少走弯路。
和C 编译器错误信息中文翻译(1)L15 重复调用***WARNING L15: MULTIPLE CALL TO SEGMENTSEGMENT: ?PR?SPI_RECEIVE_WORD?D_SPICALLER1: ?PR?VSYNC_INTERRUPT?MAINCALLER2: ?C_C51STARTUP该警告表示连接器发现有一个函数可能会被主函数和一个中断服务程序(或者调用中断服务程序的函数)同时调用,或者同时被多个中断服务程序调用。
出现这种问题的原因之一是这个函数是不可重入性函数,当该函数运行时它可能会被一个中断打断,从而使得结果发生变化并可能会引起一些变量形式的冲突(即引起函数内一些数据的丢失,可重入性函数在任何时候都可以被ISR 打断,一段时间后又可以运行,但是相应数据不会丢失)。
原因之二是用于局部变量和变量(暂且这样翻译,arguments,[自变量,变元一数值,用于确定程序或子程序的值])的内存区被其他函数的内存区所覆盖,如果该函数被中断,则它的内存区就会被使用,这将导致其他函数的内存冲突。
例如,第一个警告中函数WRITE_GMVLX1_REG 在D_GMVLX1.C 或者D_GMVLX1.A51 被定义,它被一个中断服务程序或者一个调用了中断服务程序的函数调用了,调用它的函数是VSYNC_INTERRUPT,在MAIN.C 中。
解决方法:如果你确定两个函数决不会在同一时间执行(该函数被主程序调用并且中断被禁止),并且该函数不占用内存(假设只使用寄存器),则你可以完全忽略这种警告。
如果该函数占用了内存,则应该使用连接器(linker)OVERLAY 指令将函数从覆盖分析(overlayanalysis)中除去,例如:OVERLAY (?PR?_WRITE_GMVLX1_REG?D_GMVLX1 ! *)上面的指令防止了该函数使用的内存区被其他函数覆盖。
c语言常见错误及其中英文对照表

c语言出错中英文对照表(绝对经典)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 errorCase 语法错误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 switchDefault 出现在switch语句之外Define directive needs an identifier 定义编译预处理需要标识符Division by zero用零作除数Do statement must have whileDo-while语句中缺少while部分Enum syntax error枚举类型语法错误Enumeration constant syntax error枚举常数语法错误Error directive :xxx错误的编译预处理命令Error writing output file写输出文件错误Expression syntax error表达式语法错误Extra parameter in call调用时出现多余错误File name too long文件名太长Function call missing )函数调用缺少右括号Fuction definition out of place函数定义位置错误Fuction should return a value函数必需返回一个值Goto statement missing labelGoto语句没有标号Hexadecimal or octal constant too large 16进制或8进制常数太大Illegal character ''x''非法字符xIllegal initialization非法的初始化Illegal octal digit非法的8进制数字Illegal pointer subtraction非法的指针相减Illegal structure operation非法的结构体操作Illegal use of floating point 非法的浮点运算Illegal use of pointer指针使用非法Improper use of a typedefsymbol 类型定义符号使用不恰当In-line assembly not allowed不允许使用行间汇编Incompatible storage class存储类别不相容Incompatible type conversion不相容的类型转换Incorrect number format错误的数据格式Incorrect use of default Default使用不当Invalid indirection无效的间接运算Invalid pointer addition指针相加无效Irreducible expression tree无法执行的表达式运算Lvalue required需要逻辑值0或非0值 Macro argumentsyntax error宏参数语法错误Macro expansion too long宏的扩展以后太长Mismatched number of parameters in definition 定义中参数个数不匹配Misplaced break此处不应出现break语句Misplaced continue此处不应出现continue语句Misplaced decimal point此处不应出现小数点xxx'' is assigned a value Misplaced else此处不应出现elseMisplaced else directive此处不应出现编译预处理elseMisplaced endif directive此处不应出现编译预处理endifMust be addressable必须是可以编址的Must take address of memory location 必须存储定位的地址No declaration for function ''xxx'' 没有函数xxx的说明No stack缺少堆栈No type information没有类型信息Non-portable pointer assignment不可移动的指针(地址常数)赋值Non-portable pointer comparison不可移动的指针(地址常数)比较Non-portable pointer conversion不可移动的指针(地址常数)转换Not a valid expression format type 不合法的表达式格式Not an allowed type不允许使用的类型Numeric constant too large数值常太大Out of memory内存不够用Parameter ''xxx'' is never used能数xxx没有用到Pointer required on left side of ->符号->的左边必须是指针Possible use of ''xxx'' before definition 在定义之前就使用了xxx(警告)Possibly incorrect assignment赋值可能不正确Redeclaration of ''xxx''重复定义了xxxRedefinition of ''xxx'' is not identical xxx的两次定义不一致Register allocation failure寄存器定址失败Repeat count needs an lvalue重复计数需要逻辑值Size of structure or array not known结构体或数给大小不确定Statement missing ;语句后缺少";"Structure or union syntax error结构体或联合体语法错误Structure size too large结构体尺寸太大Sub scripting missing ]下标缺少右方括号Superfluous & with function or array 函数或数组中有多余的"&"Suspicious pointer conversion可疑的指针转换Symbol limit exceeded符号超限Too few parameters in call函数调用时的实参少于函数的参数不Too many default casesDefault太多(switch语句中一个)Too many error or warning messages 错误或警告信息太多Too many type in declaration说明中类型太多Too much auto memory in function函数用到的局部存储太多Too much global data defined in file文件中全局数据太多Two consecutive dots两个连续的句点Type mismatch in parameter xxx参数xxx类型不匹配Type mismatch in redeclaration of ''xxx'' xxx重定义的类型不匹配Unable to create output file ''xxx''无法建立输出文件xxxUnable to open include file ''xxx''无法打开被包含的文件xxxUnable to open input file ''xxx''无法打开输入文件xxxUndefined label ''xxx''没有定义的标号xxxUndefined structure ''xxx''没有定义的结构xxxUndefined symbol ''xxx''没有定义的符号xxxUnexpected end of file in comment started on line xxx从xxx行开始的注解尚未结束文件不能结束Unexpected end of file in conditional started on line xxx 从xxx 开始的条件语句尚未结束文件不能结束Unknown assemble instruction未知的汇编结构Unknown option未知的操作Unknown preprocessor directive: ''xxx''不认识的预处理命令xxxUnreachable code无路可达的代码Unterminated string or character constant字符串缺少引号User break用户强行中断了程序Void functions may not return a valueVoid类型的函数不应有返回值Wrong number of arguments调用函数的参数数目错''xxx'' not an argumentxxx不是参数''xxx'' not part of structurexxx不是结构体的一部分xxx statement missing (xxx语句缺少左括号xxx statement missing )xxx语句缺少右括号xxx statement missing ;xxx缺少分号xxx'' declared but never used说明了xxx但没有使用xxx'' is assigned a value which is never used 给xxx赋了值但未用过Zero length structure结构体的长度为零。
C语言错误大全及中文解释

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 — 没有标号41: Hexadecimal or octal constant too large — 或8进制常数太⼤42: Illegal character x — ⾮法字符x43: Illegal initialization — ⾮法的初始化44: Illegal octal digit — ⾮法的8进制数字 A45: Illegal pointer subtraction — ⾮法的指针相减46: Illegal structure operation — ⾮法的结构体操作47: Illegal use of floating point — ⾮法的浮点运算48: Illegal use of pointer — 指针使⽤⾮法49: Improper use of a typedefsymbol — 类型定义符号使⽤不恰当50: In-line assembly not allowed — 不允许使⽤⾏间汇编51: Incompatible storage class — 存储类别不相容52: Incompatible type conversion — 不相容的53: Incorrect number format — 错误的数据格式54: Incorrect use of default — Default使⽤不当55: Invalid indirection — ⽆效的间接运算56: Invalid pointer addition — 指针相加⽆效57: Irreducible expression tree — ⽆法执⾏的表达式运算58: Lvalue required — 需要逻辑值0或⾮0值59: Macro argument syntax error — 宏参数语法错误60: Macro expansion too long — 宏的扩展以后太长61: Mismatched number of parameters in definition — 定义中参数个数不匹配62: Misplaced break — 此处不应出现63: Misplaced continue — 此处不应出现continue语句64: Misplaced decimal point — 此处不应出现⼩数点65: Misplaced elif directive — 不应编译预处理elif66: Misplaced else — 此处不应出现else67: Misplaced else directive — 此处不应出现编译预处理else68: Misplaced endif directive — 此处不应出现编译预处理endif69: Must be addressable — 必须是可以编址的70: Must take address of memory location — 必须存储定位的地址71: No declaration for function xxx — 没有函数xxx的说明72: No stack — 缺少堆栈73: No type information — 没有类型信息74: Non-portable pointer assignment — 不可移动的指针(地址常数)赋值75: Non-portable pointer comparison — 不可移动的指针(地址常数)⽐较76: Non-portable pointer conversion — 不可移动的指针(地址常数)转换77: Not a valid expression format type — 不合法的表达式格式78: Not an allowed type — 不允许使⽤的类型79: Numeric constant too large — 数值常太⼤80: Out of memory — 内存不够⽤81: Parameter xxx is never used — 能数xxx没有⽤到82: Pointer required on left side of -> — 符号->的左边必须是指针83: Possible use of xxx before definition — 在定义之前就使⽤了xxx(警告)84: Possibly incorrect assignment — 赋值可能不正确85: Redeclaration of xxx — 重复定义了xxx86: Redefinition of xxx is not identical — xxx的两次定义不⼀致87: Register allocation failure — 寄存器定址失败88: Repeat count needs an lvalue — 重复计数需要逻辑值89: Size of structure or array not known — 结构体或数给⼤⼩不确定90: Statement missing ; — 语句后缺少";"91: Structure or union syntax error — 结构体或联合体语法错误92: Structure size too large — 结构体尺⼨太⼤93: Sub scripting missing ] — 下标缺少右⽅括号94: Superfluous & with function or array — 函数或数组中有多余的"&"95: Suspicious pointer conversion — 可疑的指针转换96: Symbol limit exceeded — 符号超限97: Too few parameters in call — 时的实参少于函数的参数不98: Too many default cases — Default太多(switch语句中⼀个)99: Too many error or warning messages — 错误或警告信息太多100: Too many type in declaration — 说明中类型太多101: Too much auto memory in function — 函数⽤到的局部存储太多102: Too much global data defined in file — ⽂件中全局数据太多103: Two consecutive dots — 两个连续的句点104: Type mismatch in parameter xxx — 参数xxx类型不匹配105: Type mismatch in redeclaration of xxx — xxx重定义的类型不匹配106: Unable to create output file xxx — ⽆法建⽴输出⽂件xxx107: Unable to open include file xxx — ⽆法打开被包含的⽂件xxx108: Unable to open input file xxx — ⽆法打开输⼊⽂件xxx109: Undefined label xxx — 没有定义的标号xxx110: Undefined structure xxx — 没有定义的结构xxx111: Undefined symbol xxx — 没有定义的符号xxx112: Unexpected end of file in comment started on line xxx — 从xxx⾏开始的注解尚未结束⽂件不能结束113: Unexpected end of file in conditional started on line xxx — 从xxx 开始的条件语句尚未结束⽂件不能结束114: Unknown assemble instruction — 未知的汇编结构115: Unknown option — 未知的操作116: Unknown preprocessor directive: xxx — 不认识的预处理命令xxx117: Unreachable code — ⽆路可达的代码118: Unterminated string or character constant — 字符串缺少引号119: User break — ⽤户强⾏中断了程序120: Void functions may not return a value — Void类型的函数不应有返回值121: Wrong number of arguments — 的参数数⽬错122: xxx not an argument — xxx不是参数123: xxx not part of structure — xxx不是结构体的⼀部分124: xxx statement missing ( — xxx语句缺少左括号125: xxx statement missing ) — xxx语句缺少右括号126: xxx statement missing ; — xxx缺少分号127: xxx declared but never used — 说明了xxx但没有使⽤128: xxx is assigned a value which is never used — 给xxx赋了值但未⽤过。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
体上必须清楚的:1)程序结构是三种: 顺序结构 , 循环结构(三个循环结构), 选择结构(if 和 switch)2)读程序都要从main()入口, 然后从最上面顺序往下读(碰到循环做循环,碰到选择做选择)。
3)计算机的数据在电脑中保存是以二进制的形式. 数据存放的位置就是他的地址.4)bit是位是指为0 或者1。
byte 是指字节, 一个字节 = 八个位.5)一定要记住二进制如何划成十进制。
概念常考到的:1、编译预处理不是C语言的一部分,不再运行时间。
C语言编译的程序称为源程序,它以ASCII数值存放在文本文件中。
2、每个C语言程序中main函数是有且只有一个。
3、在函数中不可以再定义函数。
4、算法的是一定要有输出的,他可以没有输入。
5、break可用于循环结构和switch语句。
6、逗号运算符的级别最低。
第一章1)合法的用户标识符考查:合法的要求是由字母,数字,下划线组成。
有其它元素就错了。
并且第一个必须为字母或则是下划线。
第一个为数字就错了。
关键字不可以作为用户标识符号。
main define scanf printf 都不是关键字。
迷惑你的地方If是可以做为用户标识符。
因为If中的第一个字母大写了,所以不是关键字。
2)实型数据的合法形式:2.333e-1 就是合法的,且数据是2.333×10-1。
考试口诀:e前e后必有数,e后必为整数。
.3)字符数据的合法形式::'1' 是字符占一个字节,"1"是字符串占两个字节(含有一个结束符号)。
'0' 的ASCII数值表示为48,'a' 的ASCII数值是97,'A'的ASCII数值是65。
4)整型一般是两个字节, 字符型是一个字节,双精度一般是4个字节:考试时候一般会说,在16位编译系统,或者是32位系统。
碰到这种情况,不要去管,一样做题。
掌握整型一般是两个字节, 字符型是一个字节,双精度一般是4个字节就可以了。
5)转义字符的考查:在程序中 int a = 0x6d,是把一个十六进制的数给变量a 注意这里的0x 必须存在。
在程序中 int a = 06d, 是一个八进制的形式。
在转义字符中,’\x6d’ 才是合法的,0不能写,并且x是小写。
‘\141’ 是合法的, 0是不能写的。
‘\108’是非法的,因为不可以出现8。
6)算术运算符号的优先级别:同级别的有的是从左到右,有的是从右到左。
7)强制类型转换:一定是(int)a 不是 int(a),注意类型上一定有括号的。
注意(int)(a+b)和(int)a+b 的区别。
前是把a+b转型,后是把a 转型再加b。
8)表达式的考查:是表达式就一定有数值。
赋值表达式:表达式数值是最左边的数值,a=b=5;该表达式为5,常量不可以赋值。
自加、自减表达式:假设a=5,++a(是为6), a++(为5);运行的机理:++a 是先把变量的数值加上1,然后把得到的数值放到变量a中,然后再用这个++a表达式的数值为6,而a++是先用该表达式的数值为5,然后再把a的数值加上1为6,再放到变量a中。
进行了++a和a++后在下面的程序中再用到a的话都是变量a 中的6了。
考试口诀:++在前先加后用,++在后先用后加。
逗号表达式:优先级别最低;表达式的数值逗号最右边的那个表达式的数值。
(2,3,4)的表达式的数值就是4。
9)位运算的考查:会有一到二题考试题目。
总的处理方法:几乎所有的位运算的题目都要按这个流程来处理(先把十进制变成二进制再变成十进制)。
例1:char a = 6, b;b = a<<2; 这种题目的计算是先要把a的十进制6化成二进制,再做位运算。
例2:一定要记住,例3:在没有舍去数据的时候,<<左移一位表示乘以2;>>右移一位表示除以2。
10)018的数值是非法的,八进制是没有8的,逢8进1。
11)%符号两边要求是整数。
不是整数就错了。
12) 三种取整丢小数的情况:1、int a =1.6;2、(int)a;3、第二章1)printf函数的格式考查:%d对应整型;%c对应字符;%f对应单精度等等。
宽度的,左对齐等修饰。
%ld对应 long int;%lf 对应double。
2)scanf函数的格式考察:注意该函数的第二个部分是&a 这样的地址,不是a;Scanf(“%d%d%*d%d”,&a,&b,&c); 跳过输入的第三个数据。
3)putchar ,getchar 函数的考查:char a = getchar() 是没有参数的,从键盘得到你输入的一个字符给变量a。
putchar(‘y’)把字符y输出到屏幕中。
4)如何实现两个变量x ,y中数值的互换(要求背下来)不可以把 x=y ,y=x; 要用中间变量 t=x;x=y;y=t。
5)如何实现保留三位小数,第四位四舍五入的程序,(要求背下来)这个有推广的意义,注意 x = (int)x 这样是把小数部分去掉。
第三章特别要注意:c语言中是用非0表示逻辑真的,用0表示逻辑假的。
1)关系表达式:表达式的数值只能为1(表示为真),或0(表示假)当关系的表达是为真的时候得到1。
如 9>8这个是真的,所以表达式的数值就是1;2)逻辑表达式:只能为1(表示为真),或0(表示假)a) 共有&& || !三种逻辑运算符号。
b) !>&&>|| 优先的级别。
c) 注意短路现象。
考试比较喜欢考到。
d) 要表示 x 是比0大,比10小的方法。
0<x<10是不可以的(一定记住)。
是先计算0<x 得到的结果为1或则0;再用0,或1与10比较得到的总是真(为1)。
所以一定要用(0<x)&&(x<10)表示比0大比10小。
3)if 语句else 是与最接近的if且没有else的相组合的。
4)条件表达式:表达式1 ?表达式2 :表达式3注意是当非0时候是表达式2的数值,当为0是就是表达式2的数值。
考试口诀:真前假后。
5)switch语句:a)一定要注意有break 和没有break的差别,书上(34页)的两个例子,没有break时候,只要有一个case匹配了,剩下的都要执行,有break则是直接跳出了swiche语句。
b)switch只可以和break一起用,不可以和continue用。
第四章1)三种循环结构:a)for(); while(); do- while()三种。
b)for循环当中必须是两个分号,千万不要忘记。
c)写程序的时候一定要注意,循环一定要有结束的条件,否则成了死循环。
d) do-while()循环的最后一个while();的分号一定不能够丢。
(当心上机改错)2) break 和 continue的差别记忆方法:break:是打破的意思,(破了整个循环)所以看见break就退出真个一层循环。
continue:是继续的意思,(继续循环运算),但是要结束本次循环,就是循环体内剩下的语句不再执行,跳到循环开始,然后判断循环条件,进行新一轮的循环。
3)嵌套循环就是有循环里面还有循环,这种比较复杂,要一层一层一步一步耐心的计算,一般记住两层是处理二维数组的。
4) while((c=getchar())!=’\n’)和 while(c=getchar() !=’\n’)的差别先看a = 3 != 2 和(a=3)!=2 的区别:(!=号的级别高于=号所以第一个先计算 3!=2)第一个a的数值是得到的1;第二个a的数值是3。
考试注意点:括号在这里的重要性。
第五章函数:是具有一定功能的一个程序块;1) 函数的参数,返回数值(示意图):main(){int a = 5,b=6,c;c = add(a,b);printf(“%d”,c);}调用函数a,b是实参整个函数得到一个数值就是Add函数的返回数值。
int add ( int x, int y){int z;z=x+y;return z;}被调用函数x,y是形式参数函数返回数值是整型z就是这个add函数计算后得到的结果,就是函数返回给主程序的返回数值。
程序是在从上往下顺序执行,当碰到了函数add后,把a,b的数值穿给调用函数,程序暂时中断等待返回数值。
当得到了返回数值后,再顺序的往下执行2)一定要注意参数之间的传递实参和形参之间传数值,和传地址的差别。
(考试的重点)传数值的话,形参的变化不会改变实参的变化。
传地址的话,形参的变化就会有可能改变实参的变化。
3)函数声明的考查:一定要有:函数名,函数的返回类型,函数的参数类型。
不一定要有:形参的名称。
第六章指针变量的本质是用来放地址,而一般的变量是放数值的。
int *p 中 *p和p的差别:*p可以当做变量来用;*的作用是取后面地址p里面的数值p是当作地址来使用。
*p++ 和(*p)++的之间的差别:改错题目中很重要*p++是地址会变化。
(*p)++ 是数值会要变化。
三名主义:(考试的重点)数组名:表示第一个元素的地址。
数组名不可以自加,他是地址常量名。
(考了很多次)函数名:表示该函数的入口地址。
字符串常量名:表示第一个字符的地址。
第七章1一维数组的重要概念:对a[10]这个数组的讨论。
1、a表示数组名,是第一个元素的地址,也就是元素a[10]的地址。
2、a是地址常量,所以只要出现a++,或者是a=a+2赋值的都是错误的。
3、a是一维数组名,所以它是列指针,也就是说a+1是跳一列。
对a[3][3]的讨论。
1、a表示数组名,是第一个元素的地址,也就是元素a[10]的地址。
2、a是地址常量,所以只要出现a++,或者是a=a+2赋值的都是错误的。
3、a是二维数组名,所以它是行指针,也就是说a+1是跳一行。
4、a[0]、a[1]、a[2]也都是地址常量,不可以对它进行赋值操作,同时它们都是列指针,a[0]+1,a[1]+1,a[2]+1都是跳一列。
5、注意a和a[0] 、a[1]、a[2]是不同的,它们的基类型是不同的。
前者是一行元素,后三者是一列元素。
二维数组做题目的技巧:如果有a[3][3]={1,2,3,4,5,6,7,8,9}这样的题目。
步骤一:把他们写成:第一列第二列第三列a[0]à 1 2 3 ->第一行a[1]à 4 5 6 —>第二行a[2]à 7 8 9 ->第三行步骤二:这样作题目间很简单:*(a[0]+1)我们就知道是第一行的第一个元素往后面跳一列,那么这里就是a[0][1]元素,所以是1。
*(a[1]+2)我们就知道是第二行的第一个元素往后面跳二列。