C语言知识整理(附出错英汉对照)
- 格式:doc
- 大小:75.50 KB
- 文档页数:13
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赋了值但未用过。
体上必须清楚的: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个字节就可以了。
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语言常见英语词汇及其他提示语运算符与表达式:1.constant常量2.variable变量3.identify标识符4.keywords 关键字5.sign符号6.运算符运算符7语句8语法9.expression表达式10.initialition初始化11.数字格式数据格式12声明说明13.typeconversion类型转换14.define、definition定义条件语句:1.select选择2.表达3.logicalexpression逻辑表达式4.relationalexpression关系表达式5.priority 优先6.operation运算7.structure结构循环语句:1.circle循环2.condition条件3.variant变量4.process过程5.priority优先6.operation运算数组:1.数组2参考3元素4地址5排序6.character字符7.string字符串8.application应用函数:1.call调用2.ReturnValue返回值3函数4声明语句5.`parameter参数6.static静态的7.extern外部的指针:1.指针2参数3数组4.declaration声明5.represent表示6.manipulate处理结构、公共体和链表:1结构结构2成员3标签4function函数5enumerate枚举6工会(社区)7创建8插入9删除10修改修改文件:1、file文件2、open打开3、close关闭4、read读5、write写6、error错误序号主要章节常用英汉比较词汇注1运算符和表达式(operatorandexpression)汉语英语常量constant变量variable标识符identify 关键字keywords符号sign语句运算符语法表达式expression初始化initialization数据格式numberformat说明declaration类型转换类型转换定义和定义2条件语句statement)选择select表达式expression逻辑表达式逻辑表达式关系表达式关系表达式优先级操作结构structure3循环语句(circlestatement)循环circle条件condition变量variant过程process优先priority运算operation4函数(函数)调用call return value returnValue函数,在declare参数的静态外部声明extern5数组和指针pointer)数组array引用reference元素element地址address排序sort 字符串字符串应用程序指针参数参数数组声明declaration表示represent处理manipulate6结构体、共用体(结构、联轴节)结构杆件的杆件标记函数function枚举enumerate联合创建插入删除修改修改7文件(file)文件file打开open关闭close读read写write错误error程序设计编程标准简化编程程序修订和修订程序员占用,生活在逻辑中basic初学者通用符号指令代码machinecode机器代码teachinglanguage教学语言debugn.dos命令,调试simplicityn.单纯,简朴交互式语言中断manufacturern.制造业者structurechart结构图dialectn.方言,语调theprogramflow程序流expensen.费用,代价managermodule管理模块一致性。
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语言常见错误提示信息的英汉对照常见错误提示信息的英汉对照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赋了值但未用过。
运算符与表达式: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 运算符与表达式(operator and expression )汉语英语常量constant变量variable标识符identify关键字keywords符号sign运算符operator语句statement语法syntax表达式Expression初始化Initialization数据格式number format说明Declaration类型转换type conversion定义Define 、definition2 条件语句(conditionstatement) 选择select表达式expression逻辑表达式logical expression关系表达式Relational expression 优先priority运算operation结构structure3 循环语句(circle statement) 循环circle条件condition变量variant过程process优先priority运算operation4 函数(function) 调用call返回值return value函数function声明declare参数parameter静态的static外部的extern5 数组和指针(array andpointer) 数组array引用reference元素element地址address排序sort字符character字符串string应用application指针pointer参数argument数组array声明declaration表示represent处理manipulate6 结构体、共用体(structures 、union )结构structure 成员member标记tag函数function枚举enumerate联合( 共用体) union创建create插入insert删除delete修改modify7 文件(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.事实上symology 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 目标程序其他提示语:CPU(Center Processor Unit)中央处理单元mainboard主板RAM(random accessmemory)随机存储器(内存)ROM(Read Only Memory)只读存储器Floppy Disk软盘Hard Disk硬盘CD-ROM光盘驱动器(光驱)monitor监视器keyboard键盘mouse鼠标chip芯片CD-R光盘刻录机HUB集线器Modem= MOdulator-DEModulator,调制解调器P-P(Plug and Play)即插即用UPS(Uninterruptable Power Supply)不间断电源BIOS(Basic-input-OutputSystem)基本输入输出系统CMOS(Complementary Metal-Oxide-Semiconductor)互补金属氧化物半导体setup安装uninstall卸载wizzard向导OS(Operation Systrem)操作系统OA(Office AutoMation)办公自动化exit退出edit编辑copy复制cut剪切paste粘贴delete删除select选择find查找select all全选replace替换undo撤消redo重做program程序license许可(证)back前一步next下一步finish结束folder文件夹Destination Folder目的文件夹user用户click点击double click双击right click右击settings设置update更新release发布data数据data base数据库DBMS(Data Base Manege System)数据库管理系统view视图insert插入object对象configuration配置command命令document文档POST(power-on-self-test)电源自检程序cursor光标attribute属性icon图标service pack服务补丁option pack功能补丁Demo演示short cut快捷方式exception异常debug调试previous前一个column行row列restart重新启动text文本font字体size大小scale比例interface界面function函数access访问manual指南active激活computer language计算机语言menu菜单GUI(graphical userinterfaces )图形用户界面template模版page setup页面设置password口令code密码print preview打印预览zoom in放大zoom out缩小pan漫游cruise漫游full screen全屏tool bar工具条status bar状态条ruler标尺table表paragraph段落symbol符号style风格execute执行graphics图形image图像Unix用于服务器的一种操作系统Mac OS苹果公司开发的操作系统OO(Object-Oriented)面向对象virus病毒file文件open打开colse关闭new新建save保存exit退出clear清除default默认LAN局域网WAN广域网Client/Server客户机/服务器ATM( AsynchronousTransfer Mode)异步传输模式Windows NT微软公司的网络操作系统Internet互联网WWW(World Wide Web)万维网protocol协议HTTP超文本传输协议FTP文件传输协议Browser浏览器homepage主页Webpage网页website网站URL在Internet的WWW服务程序上用于指定信息位置的表示方法Online在线Email电子邮件ICQ网上寻呼Firewall防火墙Gateway网关HTML超文本标识语言hypertext超文本hyperlink超级链接IP(Address)互联网协议(地址)SearchEngine搜索引擎TCP/IP用于网络的一组通讯协议Telnet远程登录IE(Internet Explorer)探索者(微软公司的网络浏览器)Navigator引航者(网景公司的浏览器)multimedia多媒体ISO国际标准化组织ANSI美国国家标准协会able 能activefile 活动文件addwatch 添加监视点allfiles 所有文件allrightsreserved 所有的权力保留altdirlst 切换目录格式andfixamuchwiderrangeofdiskproblems 并能够解决更大范围内的磁盘问题andotherinFORMation 以及其它的信息archivefileattribute 归档文件属性assignto 指定到autoanswer 自动应答autodetect 自动检测autoindent 自动缩进autosave 自动存储availableonvolume 该盘剩余空间badcommand 命令错badcommandorfilename 命令或文件名错batchparameters 批处理参数binaryfile 二进制文件binaryfiles 二进制文件borlandinternational borland国际公司bottommargin 页下空白bydate 按日期byextension 按扩展名byname 按名称bytesfree 字节空闲callstack 调用栈casesensitive 区分大小写causespromptingtoconfirmyouwanttooverwritean 要求出现确认提示,在你想覆盖一个centralpointsoftwareinc central point 软件股份公司changedirectory 更换目录changedrive 改变驱动器changename 更改名称characterset 字符集checkingfor 正在检查checksadiskanddisplaysastatusreport 检查磁盘并显示一个状态报告chgdrivepath 改变盘/路径node 节点npasswd UNIX的一种代理密码检查器,在提交给密码文件前,它将对潜在的密码进行筛选。
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 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 valueMisplaced 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类型不匹配Ty pe 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 labe l ’’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结构体的长度为零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 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 valueMisplaced 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结构体的长度为零。
体上必须清楚的: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)我们就知道是第二行的第一个元素往后面跳二列。