计算机C语言专业外文翻译

合集下载

c语言专业英语词汇带翻译

c语言专业英语词汇带翻译

c语言专业英语词汇带翻译c语言专业英语词汇带翻译要想学好c语言,需要我们多记忆一些c语言中常用的专业英语词汇,现在一起来学习c语言的.专业英语词汇吧,希望对大家能够有所帮助。

c语言专业英语词汇call stack 调用栈case sensitive 区分大小写causespromptingtoconfirmyouwanttooverwritean 要求出现确认提示,在你想覆盖一个centralpointsoftwareinc central point 软件股份公司change directory 更换目录change drive 改变驱动器change name 更改名称character rset 字符集checking for 正在检查checksadiskanddisplaysastatusreport 检查磁盘并显示一个状态报告chgdrivepath 改变盘/路径node 节点npasswd UNIX的一种代理密码检查器,在提交给密码文件前,它将对潜在的密码进行筛选。

OSPF 开放最短路径优先协议OSI Model 开放系统互连模式out-of-band attack 带外攻击packet filter 分组过滤器password 口令path 路径payload 净负荷PBX 专用交换机c语言常用的专业词汇PCS 个人通信业务peer 对等permission 权限plaintext 明文PPTP 点到点隧道协议port 端口prority 优先权protocol 协议potential browser 潜在浏览器POP 互联网电子邮件协议标准process 进程proxy 代理proxy server 代理服务器paseudorandom 伪随机phreaking 指控制电话系统的过程RAS 远程访问服务Remote control 远程控制RPC 远程过程调用remote boot 远程引导route 路由router 路由器routing 路由选择c语言实用专业英语词汇RIP 路由选择信息协议routed daemon 一种利用RIP的UNIX寻径服务routing table 路由表R.U.P 路由更新协议RSA 一种公共密匙加密算法。

C语言常用的中英专业术语对照(转)

C语言常用的中英专业术语对照(转)

C语言常用的中英专业术语对照(转)C语言常用的中英专业术语对照(转)保留字 reserved words 连接 link编辑 edit 流程图 flow chart编码 code,encode 面向对象程序设计 object oriented programming编译 compile 模块化 modular运行 run 结构化 structured标识符 identifier 操作符 operator,actor目标程序 object program 嵌套 nest常量 constant 软件设计 software design 定义 define 数据结构 data structure 二进制 binary 顺序结构 sequential structure分隔符 separator 算法 algorithm分支结构 branch construct 循环结构 loop structure符号 symbol 运行环境 operational environment微型计算机 micro computer 个人计算机 personal computer信息 information 工作区 work area序列 sequence 关键字 keyword头文件 header file 函数 function语句 statement 函数体 function body源程序 source program 汇编语言 assembly language机器语言 machine language 高级语言 higherlanguage人类语言(也称自动语言human language致命错误 error 解释 interpretation注释 explanatory note,comment警告 warning 空语句 dummy statement abstract data type(ADT) 抽象数据类型;donut model 圆盘模型;abstraction 抽象;in complexity management 复杂性管理中的抽象; procedural 过程;accumulators 累加器; activation frames 激活框架;actual arguments 实参; misuse/neglect 误用/忽略;references and 引用; algorithm 算法;decision steps in 决策步骤; desk checking 桌面检查;implementation 实现; loop use decision 循环使用决策;recursive development 递归算法开发; refinement 细化;selection sort 选择排序; tree insertion 插入树;alphabetizing 依字母排序; string comparisons and analysis 字符串比较分析;bisection method case study 二分方法实力研究;capital letters case study 大写字母实力研究;inquiry 查询; flat washer 垫圈;fraction 分数; revenue 收入;measurement conversion 计量转换; ordered list有序表;set 集合; ancestors 祖先;angular brackets 尖括号; approximations iterative 迭代近似;actual 实际参数; array 数组;versatility 通用性; list correspondence 参数表一致性;output parameter 输出参数; evaluation rules 求值规则;enumerated types 枚举类型; enumeration constants 枚举常量;initialization 初始化; multidimensional arrays 多维数组;array of structures 结构数组; syntax 语法;illustrated 图示; formal 形参数组;subscripts 下标; allocation with calloc 用calloc分配;character 字符数组; manipulation statements 操作数组的语句;parallel 平行; partially filled 部分填充;pointer representation 指针表示; access 存取;sequential access 顺序存取;statistical computations with 统计计算;for storage 存储; artifitial intelligence AI;assignment 赋值; relational 相关;compound 复合; in order of precedence 优先级顺序;associativity operation 运算结合性; class 类型。

C语言常见专业词汇中英文对照

C语言常见专业词汇中英文对照
TRUE 真
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语言必背专业英语词汇

c语言必背专业英语词汇

c语言必背专业英语词汇c语言必背专业英语词汇大全要想学好c语言,对于c语言方面的词汇的非常重要,那么现在就一起来学习一些必背的`c语言专业英语词汇吧,希望能够帮到大家! c语言专业英语词汇comment 注释program comment 程序注释library 库header file 头文件function 函数statement 语句body 函数的主体calling 调用argument 参数string 字符串data 数据newline 换行字符variable 变量declaring 声明integer 整型prompt 提示消息assignment statement 赋值语句return 返回format code 格式码reductionism 归约论holism 整体论data type 数据类型domain 值域c语言必背专业词汇floating-point number 浮点数expression 表达式term 项operator 运算符constant 常量evaluation 求值subexpression 子表达式operand 操作数unary operator 一元运算符binary operator 二元运算符rules of precedence 优先级法则automatic type conversion 自动类型转换truncation 截尾type cast 强制类型转换formula 习惯用语programming idiom 程序设计习语paradigm 范例incrementing 自增decrementing 自减control statement 控制语句repeat-N-times idiom 重复N次习语iteration 迭代loop 循环cycle 周期c语言实用专业英语词汇index variable 下标变量initialization 初始化sentinel 标志conditional execution 条件执行conditional test 条件测试relational operator 关系运算符field width 字段宽度alignment 对齐方式left alignment 左对齐precision 精度padded 填充simple statement 简单语句embedded assignment 赋值嵌套multiple assignment 多重赋值associativity 结合性compound statement 复合语句nested 嵌套atomatic data 原子数据logical operator 逻辑运算符truth table 真值表short-circuit evaluation 简化求值guard 监护条件dangling-else problem 悬空else 问题。

C语言常用英语词汇

C语言常用英语词汇

高级语言high-level language 源程序source program
输入/输出单元 I/O unit 语法syntax
调用invocation
系统软件system software
循环结构iteration
测试testing
解释型语言interpreted language二进制补码two’s complement
赋值运算符assignment operators
综合性associativity
类型转换cast
原子数据类型atomic data value
编译时错误compile-time error
字符值character values 记数counting
类class
对齐justificating
注释comments
逻辑错误logic error
数据类型data type
左值lvalue
声明语句declaration statement
魔术数magic number
定义语句definition statement
Hale Waihona Puke 数学头文件mathematical library
双精度数double-precision number 八进制octal
解释程序interpreter 低级语言low-level language
抽象abstraction
累加accumulating
参数argument
自减运算符decrement operator
算术运算符arithmetic operators 参数argument
赋值语句assignment statement

C语言英汉词汇

C语言英汉词汇

Appendix FThe English-Chinese Words of C Language (C言语英汉词汇)英语汉语所在章节abbreviation缩写 5.5 absolute绝对的7.8 adequate适当的7.1 aesthetic美学的,美观的 6.7 algorithm算法 5.6 alphabetic照字母次序的 5.6 analogous类似的 4.3 arbitrary任意的 1.3 arcane神秘的,难 4.11 argument变量 1.1 argument参数,变量 4.0 arithmetic 算术 1.2 array数组 1.9 assignment赋值 2.10 assignment statement赋值语句 1.2 backslash后斜杠 1.5 backwards向后的 5.3 binary search二分查找 3.3 bit-field位字段 6.9 bitwise按位 2.9 block子程序 3.1 bracket括在一起7.1 bullet-proof完美,完备 5.12 bury隐藏 4.1 canonical规范的 6.2 castigate批评 5.12 chancy不安的,不确实的 6.5 character constant字符常量 1.5 coercion强制 4.0 colon冒号 6.9 comma逗号 3.5 comment注释 1.2 compatible兼容的7.0 compile-time编译时的 6.3 compound复合的 4.8 concatenate连接7.5 concentrate集中 1.0concise简明的 1.0 consecutively连续地 5.1 constant常量 1.0 constrain受限制 1.2 contiguous邻近的 5.1 conversion转换 2.7 coordinate坐标 6.0 criteria标准 5.11 cross-referencer交叉引用 6.5 cryptic含义模糊的,难以理解 5.5 decimal 十制 1.2 declaration声明,说明 1.2 decrement自减 2.8 define定义 1.10 dereference引用 5.1 diagnostic诊断的7.6 directive指令 4.0 discard放弃7.5 elaborate详细阐述的 5.10 elegant 完善,优美 1.0 elimination消除 1.3 encounter遇到7.1 entity实体 6.0 enumeration枚举 2.3 evaluation求值 2.10 exhaustive彻底的, 详尽的7.4 exploit使用 5.0 exponent指数7.2 expression表达式 1.2 external variable外部变量 1.10 extrapolate推断 1.0 fetche取值 6.2 floating point浮点 1.2 fraction分数 1.2 fractional部分的 4.1 frequency频率 6.5 function函数 1.1 ghastlyghastly可怕的7.8 hash哈希 6.6hath have的第三人称单数现在式(已经废除) 5.7hexadecimal十六进制 1.2 hurdle麻烦 1.1 increment自增 2.8 indentation缺口,首行缩进 1.2 indirection间接 5.1 infinite loop无限循环 3.5 innards内部 6.6 instructive有益的 4.1 integer整数 1.2 interaction交互作用7.0 interchangeable可互换的 5.4 interface接口 6.9 intuitive直观的 5.10 label标号 3.8 lexicographically词典编纂地 5.5 linefeed换行7.1 logarithm对数7.8 loop循环 1.2 macro宏 4.11 mandate训练 5.0 masks掩码 6.9 mechanism机制7.1 mimic模仿的 5.1 miscellaneous多种的7.8 mnemonic记忆的 5.1 modulo以…为模 6.6 modulus模数,系数 4.3 multi-dimensional多维的 5.7 multi-way decision多路判定 3.4 negative负数 4.1 negotiation通信7.5 nested嵌套 3.2 node节点 6.5 non-leap非闰年 5.7 notably显著地 6.0 notation符号 4.2 null statement空语句 1.5 octal八进制 1.2 omit省略 4.1 operand操作数,分量 4.3 operator运算符 2.0 ordinary普通的 5.2padded填充7.2 padding填充 6.9 parallel并联的,独力的 6.3 parameter参数 1.7 parentheses括号 1.1 parentheses圆括号(复数) 4.1 parenthesis圆括号(单数) 4.2 parse解析,分析 6.3 peripherally外围地 4.9 permissible可允许的 1.3 pictorially绘画般地 5.2 pipeline管道7.6 pitfall缺陷 4.11 pointer指针 5.0 positive正的,正数的 5.2 postfix后缀 5.5 potentially潜在地 4.2 precedence优先级 2.5 precision精确度 1.2 precision精度7.2 prefix前缀 1.5 preliminary初步的7.5 premium主要问题 5.7 preprocessor预处理 4.0 prototype原型 4.2 pseudo-random伪随机的7.8 quadratically二次方 6.5 quote引用 4.0 quoted引用的7.4 quotes引号 1.1 record记录 6.0 rectangular矩阵的 5.7 recursion递归 4.10 recursive递归的 6.5 redirection重定向7.1 redundant多余的 5.5 re-evaluted再赋值 3.5 register寄存器 4.7 relational operator关系运算符 1.5 remedy矫正 5.7 reserve保留 2.1 rightmost最右面的 5.7rudimentary根本的,基本的 5.4 scalar数量的 4.9 scope作用域 1.10 scratch开始 4.0 self-referential自引用 6.5 semantic语义上的 6.7 semicolon分号 3.1 sequence语句系列 3.2 shaky不可靠的 6.5 shorthand简写 6.2 simultaneously同时地 5.3 skimp省略 5.11 sole单独的,唯一的 5.4 sophisticate弄复杂 4.1 square平方的7.8 stack堆栈 5.4 standard library标准库 1.7 statement语句 3.1 string串 1.2 string constant字符串常量 1.5 stripped-down简化的 5.6 structure结构体 6.0 subroutine子程序 1.1 subscripting下标 5.3 subsequently随后 6.1 substantially充分地 4.5 substitution代替,置换 4.11 supplement补充 1.0 symbolic constant符号常量 2.1 synonym同义 5.3 synopsis大纲,大概7.8 syntactically语法上地 1.10 syntactically依照句法地 6.1 terminator终结符 3.1 tradeoff折衷 4.5 truncate截去 1.2 tutorial指导性的 1.0 unary一元的 5.1 underscore下划线 2.1 uniform统一的,一致的7.3 union联合 6.8 variable变量 1.0variable-length变长7.3。

c语言专业英语词汇带翻译

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语言中英文对照

一File(文件)Load(加载) F3Pick(选择)Alt-F3New(新文件)Save(存盘) F2Write To(写文件)Directory(目录)Change Dir(改变目录)OS Shell(暂时退出)Quit(退出) Alt-x二Edit(编辑) Line n Col n Insert Indent Tab Fill Unindent * D;FILE1.CLine n (光标处在文件的第n行)Col n (光标处在文件的第n列)Insert(插入模式开关,用Insert或Ctrl+v切换模式开关)Indent(自动缩进开关,用Ctrl+OL切换)Tab(制表开关开启,用Ctrl+OT切换)Fill(当Tab模式为On时,编辑程序将用制表及空格符优化每一行的开始,用Ctrl+Of翻转开关Unindent(当光标在一行中的第一个非空字符上时,或在空行上时,退格键回退一级。

用Ctrl+Ou可翻转开关* (当文件被修改而又未存盘时才出现在文件名前面)D:FILE1.C(正在编辑的文件名及位置)三Run(运行)Run(运行)Rrogram(程序重启)Go to Cursor(执行到光标处)Trace Into(跟踪进入)Step Over(单步执行)User screen(用户屏)四Compile(编译)G Compile to OBJ(编译生成目标码)Make EXE file(生成可执行文件)Iink EXE file(连接可执行文件)Build all(建立所有文件)Primary C file(主C文件)et info(获得信息)五Project(项目)Project Name(项目文件名)Break Make On(终止Make)Warnings(警告)Errors(错误)Fatal errors(致命错误)Link(连接之前)Auto Dependencies(自动依赖)Clear project(清除Project)Rem0ve Messages(删除信息)六Options(选择项)CompilerModel(存储模式)Tiny Small Compact Medium Large HugeDefines(输入宏定义)Code generation(生成目标代码)Call convention Instruction Set Floating point Default char Type(调用约定) (指令设置)(浮点数开关)(缺省字符类型)Alignment Merge duplicate string Standard stack frame Test stack overflow(对齐) (合并字符串)(标准堆栈)(堆栈溢出测试)Line numbers OBJ debug informationOptimization(优化代码)Optimize for Use register variables Register optimization(代码生成策略)(寄存器变量开关)(寄存器优化开关)Jump optimization( 跳转优化开关)Source (处理原代码)Indentifier length Nested comments ANSI keywords only(标识符长度)(嵌套注释开关)(只识别ANSI开关)Errors(处理和响应诊断信息)Errors: stop after Waning: stop after Display warnings Portabliy warning(错误后停止)(警告后停止)(显示警告开关)(移植警告)ANSI violations Common errors Less common errors(侵犯ANSI)(常见错误)(少见错误)Names(改变代码,数据和BSS段的缺省段,组,类名)(行号) (调试信息)Linker(连接程序设置)Map File(映射文件)Intialize Segments(段初始化)Default Libraries(缺省库)Graphics Libraries(图形库)Warn Duplicate Symbols(警告重复字符)Stack Warning(堆栈警告)Case-sensitive link(大小写敏感连接)Environment(集成环境参数设置)Message Tracking(信息跟踪)Keep Message(保持信息)Config Auto Save(配置自动保存)Edit Auto SaveBackup Files(备份文件)Tab Size(制表键大小)Zoomed Windows(放大窗口)Screen Size(屏显正文大小)DirectonmentInclude Directories(头部文件目录)Library Directories(库目录)Output Directory(输出目录)Turbo C Directory(Turbo C目录)Pick File Name(pick文件名)Current Pick File(当前pick文件)Arguments(命令)Save OptionsRetrieve Options七Debug(调试)Evaluate(计算)Ctrl+F4Call Stack(调用堆栈)Ctrl+F3Find Function(查找函数定义)Refresh Display(原代码调试)Display Swapping(显示转换)SmartSource Debugging(刷新显示器)On八Break/Watch(断点及监视表达式)Add watch(增加监视表达式)Ctrl+F7 Delete watch(删除监视表达式)Edit watch(编辑监视表达式)Remove all watches(删除所有监视表达式)---------------------------Toggle breakpoint(打开或关闭断点)Ctrl+F8 Clear all breakpoints(清除所有断点)View breakpoint(显示下一个断点)功能键F1 打开一个求助窗口,给出有关TC编辑命令的信息。

c语言的基础专业英语词汇

c语言的基础专业英语词汇

c语言的基础专业英语词汇c语言的基础专业英语词汇在c语言的学习过程中,我们会遇到很多比较专业的相关英语词汇,所以对于c语言方面的专业英语词汇的学习是必不可少的,下面就一起来学习吧。

c语言的基础专业词汇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网上寻呼c语言专业英语词汇Firewall防火墙Gateway网关HTML超文本标识语言hypertext超文本hyperlink超级链接IP(Address)互联网协议(地址)SearchEngine搜索引擎TCP/IP用于网络的一组通讯协议Telnet远程登录IE(Internet Explorer)探索者(微软公司的`网络浏览器) Navigator引航者(网景公司的浏览器)multimedia多媒体ISO国际标准化组织ANSI美国国家标准协会able 能active file 活动文件add watch 添加监视点all files 所有文件all rights reserved 所有的权力保留alt dirlst 切换目录格式andfixamuchwiderrangeofdisc语言实用专业英语词汇kproblems 并能够解决更大范围内的磁盘问题andotherinFORMation 以及其它的信息archive file attribute 归档文件属性assign to 指定到auto answer 自动应答auto detect 自动检测auto indent 自动缩进auto save 自动存储available on volume 该盘剩余空间bad command 命令错bad command or filename 命令或文件名错batch parameters 批处理参数binary file 二进制文件binary files 二进制文件Borland international borland国际公司Bottom margin 页下空白By date 按日期By extension 按扩展名byname 按名称by testfree 字节空闲。

C语言常用的中英专业术语对照(转)

C语言常用的中英专业术语对照(转)

desk checking 桌面检查; implementation 实现;
loop use decision 循环使用决策; recursive development 递
归算法开发;
refinement 细化; selection
sort 选择排序 ; 插入树; alphabetizing 依字母排序;
revenue 收入; measurement conversion 计量转换;
ordered list 有序表; set 集合;
ancestors 祖先; angular brackets 尖括号;
approximations iterative 迭代近似; actual 实际参数;
array 数组; versatility 通用性;
tree insertion
string comparisons and analysis 字符串比较分析; bisection
method case study 二分方法实力研究;
capital letters
case study 大写字母实力研究; inquiry 查询;
flat washer 垫圈; fraction 分数;
数组;
syntax 语法; illustrated 图
示;
formal 形参数组;
subscripts 下标;
allocation
with calloc 用 calloc 分配; character 字符数组;
manipulation statements 操作数组的语句; parallel 平行;
list correspondence 参数表一致性; output parameter 输出

C语言双语词汇对照表200

C语言双语词汇对照表200

《 C语言程序设计》双语词汇修订稿基本词汇表1.程序:Program2.程序设计(编程):Programming3.程序设计语言:Programming Language4.高级语言:High-Level Language5.源程序:Source Program6.目标程序:Object Program7.编译:Compile8.编译程序:Compiler9.连接程序:Linker10.连接:Link11.可执行程序:Executive Program12.注释:Note13.算法:Algorithm14.调试:Debug15.运行:Run16.输入:Input17.输出:Output18.流程图:Flow Chart19.结构化程序设计:Structure Programming20.顺序结构:Sequence Structure21.选择结构:Selection Structure22.循环结构:Loop Structure23.模块化结构:Modularized Structure24.函数:Function25.函数体:Function Body26.标准函数:Standard Function27.用户自定义函数:User-Defined Function28.函数定义:Function Definition29.函数返回值:Return Value of Function30.函数调用:Function Call31.函数说明:Function Declaration32.格式描述符:Style Descriptor33.函数名:Function Name34.数据传递:Data Transmission 36.形参:Formal Parameter37.实参:Practical Parameter38.命令行:Command Line39.标识符:Identifier40.数据类型:Data Type41.常量:Constant42.变量:Variable43.变量说明:Variable Declaration44.变量定义:Variable Definition45.变量名:Variable Name46.关键字:Keyword47.预定义标识符:Predefined Identifier48.用户标识符:User Identifier49.符号常量:Symbol Constant50.整型:Integer51.实型:Float52.字符型:Char53.无符号型:Unsigned54.长整型:Long55.短整型:Short56.当语句:While Statement57.直到语句:Until Statement58.运算符:Operator59.运算符优先级:Operator Precedence60.赋值:Assign61.表达式:Expression62.结合性:Combination63.单目运算符:Single operator64.双目:Double operator65.输出格式:Output Format66.输出语句:Output Statement67.格式控制:Style Control68.输出项表:Output Table69.空语句:Blank Statement71.语句块:Statement Block72.语句体:Statement Body73.逻辑判断:Logical Judge74.条件表达式:Conditional Expression75.条件语句:Conditional Statement76.逻辑值:Logic Value77.真:True78.假:False79.关系表达式:Relational Expression80.分支语句:Branch Statement81.无条件转移:Branch Unconditionally82.Goto 语句:Goto Statement83.语句标号:Statement Sign84.循环语句:Loop Statement85.循环控制变量:Loop Control Variable86.循环体:Loop Body87.死循环:Endless Loop88.嵌套循环:Nested Loop89.FOR循环:For-Loop90.指针:Pointer91.空指针:Null Pointer92.指针类型:Pointer Type93.地址:Address94.指针变量:Pointer Variable95.基类型:Basic Type96.指针移动:Pointer move97.指针比较:Pointer Compare98.空值:Null Value99.数组:Array100.数组数据类型:Array Data Type 101.数组元素:Array Element102.一维数组:One-Dimension Array 103.二维数组:Two- Dimension Array 104.数组名:Array Name105.下标变量:Subscript Variable106.越界:Banking107.初始化:Initialize108.字符串:String109.空字符串:Null String110.字符数组:Character Array 111.字符串数组:String Array112.字符串长度:String Length113.字符串比较:String Compare 114.预处理:Preprocess115.预处理命令:Preprocessor command 116.递归函数:Recursive Function 117.递归:Recursion118.递归过程:Recursive Procedure 119.作用域:Domain Field120.全局变量:Public Variable121.局部变量:Private Variable122.存储类别:Storage type123.自动:Auto124.寄存器:Register125.静态:Static126.动态:Dynamic127.外部:Extern128.文件:File129.包含:Include130.分配:Distribute131.别名:Alias132.结构体:Structure Body133.共用体:Union134.成员:Member135.结点:Node136.链表:Linked List137.与:And138.或:Or139.非:Not140.文本文件:Text File141.ASCII文件:ASCII File142.磁盘文件:Disc File143.二进制文件:Binary File144.位运算:Bit Arithmetic145.数据流:Data Stream146.打开:Open147.读:Read148.写:Write149.关闭:Close150.定位:Locate扩展词汇表151.位:Bit 152.字节:Byte 153.存储单元:storage unit 154.编码:Coding155.翻译程序:Translation Program 156.编译程序(编译器):Compiler 157.连接程序:Linker158.处理框:Processing159.输入/输出框:Input/Output160.判断框:Design161.连接点:Connector162.起始/终止框:Terminal163.程序员:Programmer164.语言处理程序:Language Processors 165.面向过程的语言:Procedure Language 166.说明符:Declaratory167.说明语句:Declare Statement168.数据:Data169.指令:Instruction170.指令代码:Instruction Code171.算术表达式:Arithmetic Expression 172.算术运算符:Arithmetic Operator 173.逗号运算符:Comma Operator174.逻辑运算:Logical Arithmetic175.逻辑运算符:Logical Operator176.关系运算:Relational Arithmetic 177.比较运算:Compare Arithmetic 178.关系运算符:Relational Operator 179.上界:Upper Range180.下界:Down Range181.溢出:Overflow182.条件循环:Conditional Loop 183.数据结构:Data Structure 184.机器指令:Machine Instruction 185.释放:Release186.汇编程序:Assemble Program 187.汇编指令:Assemble Instruction 188.汇编系统:Assemble System 189.累加:Accumulate190.冒泡排序:Bubble Sort191.选择排序:Selection Sort192.插入排序:Insertion Sort193.汇编语言:Assembly Language 194.汇编程序:Assembly Program 195.有效数字:Valid Number196.类型转换:Type Transfer197.机器语言:Machine Languages 198.缓冲区:Buffer199.随机数:Random200.出错信息:Error Message。

c语言常用英语词汇带翻译

c语言常用英语词汇带翻译

c语言常用英语词汇带翻译学习c语言不仅要熟悉程序的算法,一些专业英语词汇的学习也很重要,那么现在来学习下面带翻译的c语言常用英语词汇吧,欢迎大家一起学习。

c语言常用英语词汇develop 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终端机,终端的c语言常用专业词汇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 汇编语c语言必背英语词汇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.数字位数【c语言常用英语词汇带翻译】。

【2018最新】c语言实用专业英语词汇带翻译word版本 (4页)

【2018最新】c语言实用专业英语词汇带翻译word版本 (4页)

本文部分内容来自网络整理,本司不为其真实性负责,如有异议或侵权请及时联系,本司将立即删除!== 本文为word格式,下载后可方便编辑和修改! ==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 坐标。

【推荐下载】c语言常用英语词汇带翻译-word范文模板 (4页)

【推荐下载】c语言常用英语词汇带翻译-word范文模板 (4页)

本文部分内容来自网络整理,本司不为其真实性负责,如有异议或侵权请及时联系,本司将立即删除!== 本文为word格式,下载后可方便编辑和修改! ==c语言常用英语词汇带翻译学习 c语言不仅要熟悉程序的算法,一些专业英语词汇的学习也很重要,那么现在来学习下面带翻译的c语言常用英语词汇吧,欢迎大家一起学习。

c语言常用英语词汇develop 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终端机,终端的c语言常用专业词汇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 汇编语。

计算机C语言专业外文翻译

计算机C语言专业外文翻译

计算机C语言专业外文翻译C A History of C C and CThe C programming language was created inthe spirit of the C and C programminglanguages. This accounts for its powerful features and easy learning curve. The same cant besaid for C and C but because C was created from the ground up Microsoft took theliberty of removing some of the more burdensome features — such as pointers. This sectiontakes a look at the C and C languages tracing their evolution into C.The C programming language was originally designed for use on the UNIX operating system.C was used to create many UNIX applications including a C compiler and was eventuallyused to write UNIX itself. Its widespread acceptance in the academic arena expanded toinclude the commercial world and software vendors such as Microsoft and Borland releasedC compilers for personal computers. The original Windows API was designed to work withWindows code written in C and the latest set of the core Windows operating system APIsremain compatible with C to this day.From a design standpoint C lacked a detail that other languages such as Smalltalk had alreadyembraced: the concept of an object. Youll learn more about objects in Chapter 8 quot WritingObject-Oriented Code.quot For now think of an object as a collection of data and a set ofoperations that can be performed on that data. Object-style coding could be accomplishedusing C but the notion of an object was not enforced by the language. If you wanted tostructure your code to resemble an object fine. If you didnt fine. C really didnt care.Objectswerent an inherent part of the language so many people didnt pay much attention to thisprogramming paradigm.After the notion of object-oriented development began to gain acceptance it became clear thatC needed to be refined to embrace this new way of thinking about code. C was created toembody this refinement. It was designed to be backwardly compatible with C such that all Cprograms would also be C programs and could be compiled with a C compiler. Themajor addition to the C language was support for this new object concept. The Clanguage added support for classes which are quottemplatesquot of objects and enabled an entiregeneration of C programmers to think in terms of objects and their behavior.The C language is an improvement over C but it still has some disadvantages. C and Ccan be hard to get a handle on. Unlike easy-to-use languages like Visual Basic C and C arevery quotlow levelquot and require you to do a lot of coding to make your application run well. Youhave to write your own code to handle issues such as memory management and errorchecking. C and C can result in very powerful applications but you need to ensure thatyour code works well. One bug can make the entire application crash or behave unexpectedly.Because of the C design goal of retaining backward compatibility with C C was unableto break away from the low level nature of C.Microsoft designed C to retain much of the syntax of C and C. Developers who arefamiliar with those languages can pick up C code and begin coding relatively quickly. Thebig advantage to C however is that its designers chose not to make it backwardlycompatible with C and C. While this may seem like a bad dealits actually good news. Celiminates the things that makes C and C difficult to work with. Because all C code is alsoC code C had to retain all of the original quirks and deficiencies found in C. C isstarting with a clean slate and without any compatibility requirements so it can retain thestrengths of its predecessors and discard the weaknesses that made life hard for C and Cprogrammers.Introducing CC the new language introduced in the .NET Framework is derived from C. However Cis a modern objected-oriented from the ground up type-safe nguage featuresThe following sections take a quick look at some of the features of the C language. If someof these concepts dont sound familiar to you dontworry. All of them are covered in detail inlater chapters.ClassesAll code and data in C must be enclosed in a class. You cant define a variable outside of aclass and you cant write any code thats not in a class. Classes can have constructors whichexecute when an object of the class is created and a destructor which executes when anobject of the class is destroyed. Classes support single inheritance and all classes ultimatelyderive from a base class called object. C supports versioning techniques to help your classesevolve over time while maintaining compatibility with code that uses earlier versions of yourclasses.As an example take a look at a class called Family. This class contains the two static fieldsthat hold the first and last name of a family member as well as a method that returns the fullname of the family member.class Class1public string FirstNamepublic string LastNamepublic stringFullNamereturn FirstName LastNameNote Single inheritance means that a C class can inherit from only one base class.C enables you to group your classes into a collection of classes called a spaces have names and can help organize collections of classes into logical groupings.As you begin to learn C it becomes apparent that all namespaces relevant to the .NETFramework begin with System. Microsoft has also chosen to include some classes that aid inbackwards compatibility and API access. These classes are contained within the Microsoftnamespace.Data typesC lets you work with two types of data: value types and reference types. Value types holdactual values. Reference types hold references to values stored elsewhere inmemory.Primitive types such as char int and float as well as enumerated values and structures arevalue types. Reference types hold variablesthat deal with objects and arrays. C comes withpredefined reference types object and string as well as predefined value types sbyte shortint long byte ushort uint ulong float double bool char and decimal. You can also defineyour own value and reference types in your code. All value and reference types ultimatelyderive from a base type called object.C allows you to convert a value of one type into a value of another type. You can work withboth implicit conversions and explicit conversions. Implicit conversions always succeed anddont lose any information for example you can convert an int to a long without losing anydata because a long is larger than an int. Explicit conversions may cause you to lose data forexample converting a long into an int may result in a loss ofdata because a long can holdlarger values than an int. You must write a cast operator into your code to make an explicitconversion happen.Cross-ReferenceRefer to Chapter 3 quotWorking with Variablesquot for more informationabout implicit and explicit conversions.You can work with both one-dimensional and multidimensional arrays in C.Multidimensional arrays can be rectangular in which each of the arrays has the samedimensions or jagged in which each of the arrays has different dimensions.Classes and structures can have data members called properties and fields. Fields arevariables that are associated with the enclosing class or structure. You may define a structurecalled Employee for example that has a field called Name. If you define a variable of typeEmployee called CurrentEmployee you can retrieve the employees name by . Properties are like fields but enable you to write code to specifywhat should happen when code accesses the value. If the employees name must be read froma database for example you can write code that says quotwhen someone asks for the value ofthe Name property read the name from the database and return the name as a string.quotFunctionsA function is a callable piece of code that may or may not return a value to the code thatoriginally called it. An example of a function would be the FullName function shown earlierin this chapter in theFamily class. A function is generally associated to pieces of code thatreturn information whereas a method generally does not return information. For our purposeshowever we generalize and refer to themboth as functions.Functions can have four kinds of parameters: Input parameters have values that are sent into the function but the function cannotchange those values. Output parameters have no value when they are sent into the function but the functioncan give them a value and send the value back to the caller. Reference parameters pass in a reference to another value. They have a value comingin to the function and that value can be changed inside the function. Params parameters define a variable number of arguments in a list.C and the CLR work together to provide automatic memory management. You dont need towrite code that says quotallocate enough memory for an integerquot or quotfree the memory that thisobject was using.quot The CLR monitors your memory usage and automatically retrieves morewhen you need it. It also frees memory automatically when it detects that it is no longer beingused this is also known as Garbage Collection.C provides a variety of operators that enable you to write mathematical and bitwiseexpressions. Many but notall of these operators can be redefined enabling you to changehow the operators work.C supports a long list of statements that enable you to define various execution paths withinyour code. Flow control statements that use keywords such as if switch while for break andcontinue enable your code to branch off into different paths depending on the values of yourvariables.Classes can contain code and data. Each class member has something called an accessibilityscope which defines the membersvisibility to other objects. C supports public protectedinternal protected internal and private accessibility scopes.VariablesVariablescan be defined as constants. Constants have values that cannot change during theexecution of your code. The value of pi for instance is a good example of a constant becauseits value wont be changing as your code runs. Enum type declarations specify a type namefor a related group of constants. For example you could define an enum of Planets withvalues of Mercury Venus Earth Mars Jupiter Saturn Uranus Neptune and Pluto and usethose names in your code. Using the enum names in code makes code more readable than ifyou used a number to represent each planet.C provides a built-in mechanism for defining and handling events. If you write a class thatperforms a lengthy operation you may want to invoke an event when the operation iscompleted. Clients can subscribe to that event and catch the event in their code which enablesthem to be notified when you have completed your lengthy operation. The event handlingmechanism in C uses delegates which are variables that reference a function.Note An event handler is a procedure in your code that determines the actions to beperformed when an event occurs such as the user clicking a button.If your class holds a set of values clients may want to access the values as if your class werean array. You can write a piece of code called an indexer to enable your class to be accessedas if it were an array. Suppose you write a class called Rainbow for example that contains aset of the colors in the rainbow. Callers may want to write MyRainbow0 to retrieve the firstcolor in the rainbow. You canwrite an indexer into your Rainbow class to define what shouldbe returned when the caller accesses your class as if it were an array ofvalues.InterfacesC supports interfaces which are groups of properties methods and events that specify a setof functionality. C classes can implement interfaces which tells users that the class supportsthe set of functionality documented by the interface. You can develop implementations ofinterfaces without interfering with any existing code which minimizescompatibilityproblems. Once an interface has been published itcannot be changed but it can evolvethrough inheritance. C classes can implement many interfaces although the classes can onlyinherit from a single base class.Lets look at a real-world example that would benefit from interfaces to illustrate its extremelypositive role in C. Many applications available today support add-ins. Assume that you havecreated a code editor for writing applications. This code editor when executed has thecapability to load add-ins. To do this the add-in must follow a few rules. The DLL add-inmust export a function called CEEntry and the name of the DLL must begin with CEd. Whenwe run our code editor it scans its working directory for all DLLs that begin with CEd. Whenit finds one it is loaded and then it uses the GetProcAddress to locate the CEEntry functionwithin the DLL thus verifying that you followed all the rules necessary to create an add-in.This method of creating and loading add-ins is very burdensome because it burdens the codeeditor with more verification duties than necessary. If an interface were used in this instanceyour add-in DLL could have implemented an interface thus guaranteeing that all necessarymethods properties andevents were present with the DLL itself and functioning asdocumentation specified.AttributesAttributes declare additional information about your class to the CLR. In the past if youwanted to make your class self-describing you had to take a disconnected approach in whichthe documentation was stored in external files such as IDL or even HTML files. Attributessolve this problem by enabling you the developer to bind information to classes — any kindof information. For example you can use anattribute to embed documentation informationinto a class. Attributes can also be used to bind runtime information to a class defining how itshould act when used. The possibilities are endless which is why Microsoft includes manypredefined attributes within the .NET piling CRunning your C code through the C compiler produces two important pieces ofinformation: code and metadata. The following sections describe these two items and thenfinish up by examining the binary building block of .NET code: the assembly.Microsoft Intermediate Language MSILThe code that is output by the C compiler is written in a language called MicrosoftIntermediate Language or MSIL. MSIL is made up of a specific set of instructions thatspecify how your code should be executed. It contains instructions for operations such asvariable initialization calling object methods and error handling just to name a few. C isnot the only language in which source code changes into MSIL during the compilationprocess.All .NET-compatible languages including Visual Basic .NET and Managed Cproduce MSIL when their source code is compiled. Because all of the .NET languagescompile to the same MSIL instruction set and because all of the .NET languages use the sameruntime code from different languages and different compilers can work together easily.MSIL is not a specific instruction set for a physical CPU. It knows nothing about the CPU inyour machine and your machine knows nothing about MSIL. How then does your .NETcode run at all if your CPU cant read MSIL The answer is that the MSIL code is turned intoCPU-specific code when the code is run for the first time. This process is called quotjust-in-timequotcompilation or JIT. The job of a JIT compiler is to translate your generic MSIL code intomachine code that can be executed by your CPU.You may be wondering about what seems like an extra step in the process. Why generateMSIL when a compiler could generate CPU-specific code directly After all compilers havealways done this in the past. There are a couple of reasons for this. First MSIL enables yourcompiled code to be easily moved to different hardware. Suppose youve written some Ccode and youd like it to run on both your desktop and a handheld device.Its very likely thatthose two devices have differ.。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

计算机 C 语言专业外文翻译C A History of C C and CThe C programming language was created in the spirit of the C and C programminglanguages. This accounts for its powerful features and easy learning curve. The same cant besaid for C and C but because C was created from the ground up Microsoft took theliberty of removing some of the more burdensome features —such aspointers. This sectiontakes a look at the C and C languages tracing their evolution into C.The C programming language was originally designed for use on the UNIX operating system.C was used to create many UNIX applications including a C compiler and was eventuallyusedto write UNIX itself. Its widespread acceptance in the academic arena expanded toinclude the commercial world and software vendors such as Microsoft and Borland releasedC compilers for personal computers. The original Windows API was designed to work withWindows code written in C and the latest set of the core Windows operating system APIsremain compatible with C to this day.From a design standpoint C lacked a detail that other languages such as Smalltalk had alreadyembraced: the concept of an object. Youll learn more about objects in Chapter 8 quot WritingObject- Oriented Code.quot For now think of an object as a collection of data and a set ofoperations that can be performed onthat data. Object-style coding could be accomplishedusing C but the notion of an object was not enforced by the language. If you wantedtostructure your code to resemble an object fine. If you didnt fine. C really didnt care.Objectswerent an inherent part of the language so many people didnt pay much attention to thisprogramming paradigm.After the notion of object- oriented development began to gain acceptance it became clear thatC needed to be refined to embrace this new way of thinking about code. C was created toembody this refinement. It was designed to be backwardly compatible with C such that all Cprograms would also be C programs and could be compiled with a C compiler. Themajor addition to the C language was support for this new object concept. The Clanguage added support for classes which are quottemplatesquot of objects and enabled an entiregeneration of C programmers to think in terms of objects and their behavior.The C language is an improvement over C but it still has some disadvantages. C and Ccan be hard to get a handle on. Unlike easy-to-use languages like Visual Basic C and C arevery quotlow levelquot and require you to do a lot of coding to make your application run well. Youhave to write your own code to handle issues such as memory management and errorchecking. C and C can result in very powerful applications but you need to ensure thatyour code works well. One bug can make the entire application crash or behave unexpectedly.Because of the C design goal of retaining backward compatibility with C C was unableto break away from the low level nature of C.Microsoft designed C to retain much of the syntax of C and C. Developers who arefamiliar with those languages can pick up C codeand begin coding relatively quickly. Thebig advantage to C however is that its designers chose not to make it backwardlycompatible with C and C. While this may seem like a bad deal its actually good news. Celiminates the things that makes C and C difficult to work with. Because all C code is alsoC code C had to retain all of the original quirks and deficiencies found in C. C isstarting with a clean slate and without any compatibility requirements so it can retain thestrengths of its predecessors and discard the weaknesses that made life hard for C and Cprogrammers.Introducing CC the new language introduced in the .NET Framework is derived from C. However Cis a modern objected-oriented from the ground up type-safenguage featuresThe following sections take a quick look at some of the features of the C language. If someof these concepts dont sound familiar to you dontworry. All of them are covered in detail inlaterchapters.ClassesAll code and data in C must be enclosed in a class. You cant define a variable outside of aclass and you cant write any code thats not in a class. Classes can have constructors whichexecute when an object of the class is created and a destructor which executes when anobject of the class is destroyed. Classes support single inheritance and all classes ultimatelyderive from a base class called object. C supports versioning techniques to help your classesevolve over time while maintaining compatibility with code that uses earlier versions of yourclasses.As an example take a look at a class calledFamily. This class contains the two static fieldsthat hold the first and last name of a family member as well as a method that returns the fullname of the family member.class Class1public string FirstNamepublic string LastNamepublic stringFullNamereturn FirstName LastNameNote Single inheritance means that a C class can inherit from only one base class.C enables you to group your classes into a collection of classes called aspaces have names and can help organize collections of classes into logical groupings.As you begin to learn C it becomes apparent that all namespaces relevant to the .NETFramework begin with System. Microsoft has also chosen to include some classes that aid inbackwards compatibility and API access. These classes are contained within the Microsoftnamespace.Data typesC lets you work with two types of data: value types and reference types. Value types holdactual values. Reference types hold references to values stored elsewhere in memory.Primitive types such as char int and float as well as enumerated values and structures arevalue types. Reference types hold variables that deal with objects and arrays. C comes withpredefined reference types object and string as well as predefined value types sbyte shortint long byte ushort uint ulong float double bool char and decimal. You can also defineyour own value and reference types in your code. All value and reference types ultimatelyderive from a base type called object.C allows you to convert a value of one type into a value of another type. You can work withboth implicit conversions andexplicit conversions. Implicit conversions always succeed anddont lose any information for example you can convert an int to a long without losing anydata because a long is larger than an int. Explicit conversions may cause you to lose data forexample converting a long into an int may result in a loss of data because a long can holdlarger values than an int. You must write a cast operator into your code to make an explicitconversion happen.Cross- ReferenceRefer to Chapter 3 quotWorking with Variablesquot for more informationabout implicit and explicit conversions.You can work with both one-dimensional and multidimensional arrays in C.Multidimensional arrays can be rectangular in which each of the arrays has the samedimensions or jagged in which each of the arrays has different dimensions.Classes and structures can have data members called properties and fields. Fields arevariables that are associated with the enclosing class or structure. You may define a structurecalled Employee for example that has a field called Name. If you define a variable of typeEmployee called CurrentEmployee you can retrieve the employees name by . Properties are like fields but enable you to write code to specifywhat should happen when code accesses the value. If the employees name must be read froma database for example you can write code that says quotwhen someone asks for the value ofthe Name property read the name from the database and return the name as a string.quotFunctionsA function is a callable piece of code that may or may not return a value to the code thatoriginally called it. Anexample of a function would be the FullName function shown earlierin this chapter in theFamily class. A function is generally associated to pieces of code thatreturn information whereas a method generally does not return information. For our purposeshowever we generalize and refer to them both as functions.Functions can have four kinds of parameters: Input parameters have values that are sent into the function but thefunction cannotchange those values. Output parameters have no value when they are sent into the function but the functioncan give them a value and send the value back to the caller. Reference parameters pass in a reference to another value. They have a value comingin to the function and that value can be changed inside the function. Params parameters define a variable number of arguments in a list.C and the CLR work together to provide automatic memory management. You dont need towrite code that says quotallocate enough memory for an integerquot or quotfree the memory that thisobject was using.quot The CLR monitors your memory usage and automatically retrieves morewhen you need it. It also frees memory automatically when it detects that it is no longer beingused this is also known as Garbage Collection.C provides a variety of operators that enable you to write mathematical and bitwiseexpressions. Many but not all of these operators can be redefined enabling you to changehow the operators work.C supports a long list of statements that enable you to define various execution paths withinyour code. Flow control statements that use keywords suchas if switch while for break andcontinue enable your code to branchoff into different paths depending on the values ofyourvariables.Classes can contain code and data. Each class member has something called an accessibilityscope which defines the members visibility to other objects. C supports public protectedinternal protected internal and private accessibility scopes.VariablesVariables can be defined as constants. Constants have values that cannot change during theexecution of your code. The value of pi for instance is a good example of a constant becauseits value wont be changing as your code runs. Enum type declarations specify a type namefor a related group of constants. For example you could define an enum of Planets withvalues of Mercury Venus Earth Mars Jupiter Saturn Uranus Neptune and Pluto and usethose names in your code. Using the enum names in code makes code more readable than ifyou used a number to represent each planet.C provides a built-in mechanism for defining and handling events. If you write a class thatperforms a lengthy operation you may want to invoke an event when the operation iscompleted. Clients can subscribe to that event and catch the event in their code which enablesthem to be notified when you have completed your lengthy operation. The event handlingmechanism in C uses delegates which are variables that reference a function.Note An event handler is a procedure in your code that determines the actions to beperformed when an event occurs such as the user clicking a button.If your class holds a set of values clients may want to access the values as if your classwerean array. You can write a piece of code called an indexer to enable your class to be accessedas if it were an array. Suppose you write a class called Rainbow for example that contains aset of the colors in the rainbow. Callers may want to write MyRainbow0 toretrieve the firstcolor in the rainbow. You can write an indexer into your Rainbow class to define what shouldbe returned when the caller accesses your class as if it were an array ofvalues.InterfacesC supports interfaces which are groups of properties methods and events that specify a setof functionality. C classes can implement interfaces which tells users that the class supportsthe set of functionality documented by the interface. You can develop implementations ofinterfaces without interfering with any existing code which minimizescompatibilityproblems. Once an interface has been published it cannot be changed but it can evolvethrough inheritance. C classes can implement many interfaces although the classes can onlyinherit from a single base class.Lets look at a real-world example that would benefit from interfaces to illustrate its extremelypositive role in C. Many applications available today support add-ins. Assume that you havecreated a code editor for writing applications. This code editor when executed has thecapability to load add-ins. To do this the add-in must follow a few rules. The DLL add-inmust export a function called CEEntry and the name of the DLL must begin with CEd. Whenwe run our code editor it scans its working directory for all DLLs that beginwith CEd. Whenit finds one it is loaded and then it uses the GetProcAddress to locate the CEEntry functionwithin the DLL thus verifying that you followed all the rules necessary to create an add-in.This method of creating and loading add-ins is very burdensome because it burdens the codeeditor with more verification duties than necessary. If an interface were used in this instanceyour add-in DLL could have implemented an interface thus guaranteeing that all necessarymethods properties andevents were present with the DLL itself and functioning asdocumentation specified.AttributesAttributes declare additional information about your class to the CLR. In the past if youwanted to make your class selfdescribing you had to take a disconnected approach in whichthe documentation was stored in external files such as IDL or even HTML files. Attributessolve this problem by enabling you the developer to bind information to classes —any kindof information. For example youcan use anattribute to embed documentation informationinto a class.Attributes can also be used to bind runtime information to a class defining how itshould act when used. The possibilities are endless which is why Microsoft includes manypredefined attributes withinthe .NET piling CRunning your C code through the C compiler produces two important pieces ofinformation: code and metadata. The following sections describe these two items andthenfinish up by examining the binary building block of .NET code: the assembly.Microsoft Intermediate Language MSILThe code that is output by the C compiler is written in a language called MicrosoftIntermediate Language or MSIL. MSIL is made up of a specific set of instructions thatspecify how your code should be executed. It contains instructions for operations such asvariable initialization calling object methods and error handling just to name a few. C isnot the only language in which source code changes into MSIL during the compilationprocess.All .NET-compatible languages including Visual Basic .NET and Managed Cproduce MSIL when their source code is compiled. Because all of the .NET languagescompile to the same MSIL instruction set and because all of the .NET languages use the sameruntime code from different languages and different compilers can work togethereasily.MSIL is not a specific instruction set for a physical CPU. It knows nothing about the CPU inyour machine and your machine knows nothing about MSIL. How then does your .NETcode run at all if your CPU cant read MSIL The answer is that the MSIL code is turned intoCPU-specific code when the code is run for the first time. This process is called quotjust-in- timequotcompilation or JIT. The job of a JIT compiler is to translate your generic MSIL code intomachine code that can be executed by your CPU.You may be wondering about what seems like an extra step in the process. Why generateMSIL when a compiler could generate CPU-specific code directly After all compilers havealwaysdone this in the past. There are a couple of reasons for this. First MSIL enables yourcompiled code to be easily moved to different hardware. Suppose youvewritten some Ccode and youd like it to run on both your desktop and a handheld device.Its very likely thatthose two devices have differ.。

相关文档
最新文档