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语言常见错误中英文对照表-1讲解学习

分析:例如“#define s(r|) r*r”中参数多了一个字符‘|’
errorC2014: preprocessor command must start as first nonwhite space
中文对照:预处理命令前面只允许空格
分析:每一条预处理命令都应独占一行,不应出现其他非空格字符
中文对照:常量表达式不是整数
分析:一般是定义数组时数组长度不是整型常量
errorC2059: syntax error : 'xxx'
中文对照:‘xxx’语法错误
分析:引起错误的原因很多,可能多加或少加了符号xxx
errorC2064: term does not evaluate to a function
errorC2015: too many characters in constant
中文对照:常量中包含多个字符
分析:字符型常量的单引号中只能有一个字符,或是以“\”开始的一个转义字符
errorC2017: illegal escape sequence
中文对照:转义字符非法
分析:一般是转义字符位于' '或" "之外,例如“char error = ' '\n;”
中文对照:case表达式类型非法
分析:case表达式必须是一个整型常量(包括字符型)
errorC2057: expected constant expression
中文对照:期待常量表达式
分析:一般是定义数组时数组长度为变量,例如“int n=10; int a[n];”中n为变量,是非法的
errorC2058: constant expression is not integral
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 ; ----------------说明缺少";"houjiumingDeclaration 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进制数字houjiumingIllegal 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 ----------------------此处不应出现else houjiumingMisplaced else directive ------------------此处不应出现编译预处理else-Misplaced 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 -------------------内存不够用houjiumingParameter ''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 -----------------说明中类型太多houjiuming-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'' ----------------无法打开输入文件xxx-Undefined label ''xxx'' -------------------没有定义的标号xxx Undefined structure ''xxx'' -----------------没有定义的结构xxx Undefined 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 ----------------未知的汇编结构houjiuming-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缺少分号houjiumingxxx'' 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. 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 目标程序。
C编译器错误信息中文翻译

C编译器错误信息中文翻译I.Compiling ——compile 编译II.fatal error ——重大错误III.Error executing ——执行错误IV.syntax error ——语法错误1.Expression syntax error ——表达式语法错误2.Declaration syntax error ——声明中出现语法错误3.Compound statement missing{ ——复合语句漏掉"{"4.Illegal character ``x`` ——非法字符x5.undeclared identifier ——未定义的标识符6.redeclaration of ``xxx`` ——重复定义了xxx7.Declaration missing ; ——声明缺少";"8.Cannot open include file: 'iostram.h': No such file or directory ——打不开包含文件'iostram.h':没有这个文件或者路径错误9.Could not find file ``xxx`` ——找不到XXX文件10.m issing ';' before identifier 'cout' ——在标识符'cout' 之前缺少';' 11.u nexpected end of file found ——找不到文件结束12.u nresolved external symbol _main ——缺少主函数main13.m issing ')' before '{' ——在'{' 之前缺少')'14.C all to function with no prototype ——调用函数时没有声明函数15.C all of non-function ——调用未定义的函数16.F unction should return a value ——函数必需返回一个值17.T ype mismatch in parameter xxx ——参数xxx类型不匹配18.D o statement must have while ——Do-while语句中缺少while部分19.A rgument list syntax error ——参数表语法错误20.D ivision by zero ——用零作除数21.A rray size toolarge ——数组尺寸太大22.C ase outside of switch ——漏掉了case 语句23.M isplaced break ——此处不应出现break语句24.C ode has no effect ——代码执行不到25.C onstant expression required ——要求常量表达式26.C onstant out of range in comparison ——在比较中常量超出范围27.w riting output file ——写输出文件错误28.U nable to create output file ``xxx`` ——无法建立输出文件xxx29.I llegal initialization ——非法的初始化30.I llegal use of floating point ——非法的浮点运算31.I llegal use of pointer ——指针使用非法32.I ncompatible type conversion ——不相容的类型转换33.L value required ——需要逻辑值0或非0值34.M acro argument syntax error ——宏参数语法错误35.M ismatched number of parameters in definition ——定义中参数个数不匹配36.B ad character in paramenters ——参数中有不适当的字符37.B ad file name format in include directive ——包含命令中文件名格式不正确38.C onversion may lose significant digits ——转换时会丢失意义的数字39.O ut of memory ——内存不够用40.P arameter ``xxx`` is never used ——参数xxx没有用到41.``x xx`` is assigned a value which is never used ——xxx定义了但没有使用42.P ossible use of ``xxx`` before definition ——在定义之前就使用了xxx(警告)43.P ossibly incorrect assignment ——赋值可能不正确。
编译原理术语中英文对照表

General left recursion
通常左递归
General LR(1) parsing algorithm 通用 LR(1)语法分析算法
Global data
全局数据
Global declaration Global optimization
全局声明 全局优化
Global variable GNU Bison parser generator
《编译原理》术语中英文对照表
Index
2007 年 7 月
No.
Englis h
Absolute machine code
Abstract machine
Abstract syntax tree
Accepting state
Access chain
Access link
Action table
Activation environment
F
Chinese 阶乘函数 有限自动机 First 集 一个词法分析器的自动 生成器 浮点除法 浮点数 浮点值类型 流图 Follow 集 形式定义 For 语句 编译器的前端 函数声明 函数定义
chapter
G
No.
Englis h
Chinese
Garbage collection
垃圾收集
General immediate left recursion 通常直接左递归
chapter
Attribute grammar Automata Automatic code generator Auxiliary routine Available expression
属性文法 自动机 代码自动生成 附属函数 有效表达式
C语言常见专业词汇中英文对照
FALSE 假
if 如果
else 否则
Sizeof 所占内存字节数
Switch 分支结构
case 与常值匹配
break 跳转
default 缺省、默认
While 当循环
do…while 直到循环
continue 结束本次循环进行下一次迭代
Actual parameter 实际参数
Call by reference 传值调用
Call by value 引用调用
String 字符串
String literal 字符串常量
sequence 序列
queue 队列
Puts() 把字符串数组输出到显示器
main 主要
printf 打印、输出
IDE 集成开发环境
source File 源文件
warning 警告
Project 工程
int 整型
short int 短整型
unsigned short int 无符号短整型
long int 长整型
floar 算术运算符
Assignment operator 赋值运算符
Logical operator 逻辑运算符
function 函数
Build-in function 内置函数
User Defined Function 自定义函数
Gets() 从标准键盘输入读入一个字符串
string.h 存放字符串函数的头文件
strlen() 计算字符串的长度
strcpy() 复制字符串
strcmp() 字符串比较
strcat() 字符串连接
C语言 英文中文对照表(1)
C语言英文中文对照表(1)%d ————我是一个整数变量!%f ————我是一个小数变量!%c ————我是一个字符变量!%s ————我是一大堆字符变量!int a; ————给我一个整数盒子a;float b;————给我一个小一点的小数盒子b;double c; ————给我一个大一点的小数盒子c;char d; ————给我一个能存所有东西的盒子d;int e[3]; ————给我3个整数盒子他们分别是e[0] e[1] e[2] float f[4]; ————给我3个整数盒子他们分别是f[0] f[1] f[2] f[3]double g[5]; ————给我3个整数盒子他们分别是g[0] g[1] g[2] g[3] g[4]char h[6]; ————给我3个整数盒子他们分别是h[0] h[1] h[2] h[3] h[4] h[5] printf("你好!"); ————输出(“你好”);printf("你好:%d",a); ————输出一句“你好”加上a里面的值scanf("%f",b); ————输出一个东西,把这个东西给b 我要事先知道输入的是什么类型~scanf("你好%c",d); ————输入一个东西,把输入的东西给d ,但是事先要输入“你好”否则我不被执行if 语句if(b==0)—————————————————————如果(b等于0) {—————————————————————————如果开始!printf("你好");———————————————输出“你好”}—————————————————————————如果结束!else if (b==1)———————————————————再如果(b等于1){—————————————————————————再如果开始!printf("我不好");—————————————输出(我不好)}—————————————————————————再如果结束!else————————————————————————否则{—————————————————————————否则开始!printf("你好我也好");————————————输出“你好我也好”}——————————————————————————否则结束!for 语句int i;————————————————给我一个整数盒子i;for(i=0;i<10;i++){——————————循环(告诉我用到什么判断;判断在什么条件下执行;改变被判断的条件){——————————————————这个循环由你开始printf("你好!")———————输出(“你好!”);}——————————————————这个循环由你结束。
C C++术语中英文对照
class head 类别表头 类头 ?
class hierarchy 类别继承体系 ?
argument 引数(传给函式的值). 叁见 parameter 叁数
array 阵列 数组
arrow operator arrow(箭头)运算子 -> 箭头运算符
enclosing class 外围类别(与巢状类别 nested class 有关)?
assignment operator assignment(指派)运算子 = 赋值运算符
associated 相应的、相关的 相关的、关联、相应的
associative container 关联式容器(对应 sequential container) 关联式容器
command line 命令行 命令行
(系统文字模式提示号之後所下的整行命令)
compiler 编译器 编译器
(存放资料的某种结构如 list, vector...)
context 背景关系、周遭环境、上下脉络 环境、上下文
const 常数(constant 的缩写,C++ 关键字)
derived class 衍生类别 派生类
destructor(dtor) 解构式 析构函数、析构器
device 装置 设备
cleanup 清理、善後 清理、清除
candidate function 候选函式 候选函数
(在函式多载决议程序中出现的候选函式)
chain 串链(例 chain of function calls) 链
child class 子类别(或称为derived class, subtype) 子类
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: 输入输出图表。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Q:C 语言出错中英文对照表A: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此处不应出现小数点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用户强行中断了程序V oid functions may not return a valueV oid类型的函数不应有返回值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结构体的长度为零。