收藏 分销(赏)

C++术语表.doc

上传人:天**** 文档编号:10522790 上传时间:2025-06-01 格式:DOC 页数:25 大小:152.51KB
下载 相关 举报
C++术语表.doc_第1页
第1页 / 共25页
C++术语表.doc_第2页
第2页 / 共25页
点击查看更多>>
资源描述
C++词汇表 A abort() 特殊函数 如果一个函数抛出异常,但在通往异常函数的调用链中找不到与之匹配的catch,则该程序通常以此函数调用终止 abstract base class 抽象基类 abstract class 抽象类 无实例对象的类,其唯一用途是被继承 abstract data type(ADT) 抽象数据类型 abstraction 抽象 具体事物的一个概括 accessor function 访问函数。 可以访问一个对象但不能改变其值的函数。 action 操作 action/decision model 操作判断模型 adding a pointer and an integer 指针与整数相加 address 地址 一个指定变量在内存中的位置值。 aggregation relationship 聚合关系 类之间的“has-a”关系。 algorithm 算法 用以解决问题的规格说明,要求无歧义,可执行并且可终止。 ambiguity in multiple inheritance 多重继承的歧义性 ampersand(&) suffix &号后缀 angle brackets 尖括号 ANSI/ISO C++draft standard ANSI/ISO C++标准 美国国家标准化协会(AmericanNational Atandards Institute) 和国际标准化组织(International Standards Organization)发 布的C++语言标准 appending strings to other strings 将字符串添加到另一个字符串中 argument 参数 调用函数时使用的变量或由运算符连接的操作数。 argument in a function call 函数调用中的参数 arithmetic and logic unit 算术逻辑单元 arithmetic assignment operator 算术赋制值运算 arithmetic operators 算术逻辑符 array 数组 同类型的值的集合,可以通过整型下标访问其中的值。 array initialize list 数组初始化值列表 array of pointers 指针数组 array of strings 字符串数组 arrow member selection operator(->) 箭头成员选择运算符 arrow operator –>运算符 p–>等同于(*p)﹒m。 ASCII character set ASCII字符集 ASCII code ASCII 码 美国信息交换标准码(American Standard Code for Information Interchange),将字母,数字,标点符号和控制符同0~127之间的整数对应起来。 assembly language 汇编语言 assert macro assert宏 宏是一种特殊的预处理指令,用来在程序中插入一种复 杂代码 assertion 断言 在程序某个具体位置上应满足条件的要求,常用assert 宏进行测试。 assignment 赋值 给变量赋予一个值。 association 关联 类之间的一种关系。其中,一个类的对象可以操纵另一 个类的对象,一般情况下通过对象引用实现。 attribute 属性 attributes of an object 对象属性 auto storage class specifier auto存储类说明符 automatic storage 自动存储 automatic storage class 自动存储类 automatic variable 自动变量 B base case in recursion 递归中的基本情况 base class 基类 派生其他类的类。 base class default constructor 基类默认构造函数 base-class constructor 基类构造函数 base-class destructor 基类析构函数 base-class initialize 基类初始化值 base-class pointer 基类指针 base-class virtual function 基类虚函数 behavior 行为 behaviors of an object 对象行为 Big-Oh notation 大O表示法 标记g(n)=O(f(n)),表明函数g的增长率与用n表示的函数f的增长率相关。例如,10n2+100n–1000=O(n2)。 “Big three” management functions “大三样”内存管理函数 类中用来管理动态内存或其他资源的3 个至关重要的函数,即复数构造函数,析构函数和赋值运算符函数。 binary file 二进制文件 以二进制形式存在的数据文件,不能以文本方式读取. binary operator 二元运算符 需要两个运算符对象的运算符,例如x+y. binary scope resolution operator(::) 二元作用域运算符 binary search 折半查找 一种在以排序的数组中查找某个特定值的快速算法,每次查找空间减半. binary search of an array 数组折半查找 binary tree 二叉树 每个节点至多有两个字节点. bit 位 二进制数字,也是信息的最小存储单元,他只有两种取值:0或1.不能n位二进制数有2n种可能的取值. black-box testing 黑盒测试 在未知内部实现细节的情况下所进行的测试. block 块(程序块) block scope 块范围 body of a function 函数体 body of a loop 循环体 boolean operator 布尔运算符 boolean type 布尔类型 只有true和false两种取值的数据类型. boundary test case 边界测试用例 在合法边界值附近的测试用例.例如,如果一个函数要处理所有的非负整数,那么0 就是边界用例测试. bounds error 边界错误 试图访问数组合法范围外的元素所引发的错误. bounds checking 边界检查 break statement break语句 C++语句之一,用于终止循环或switch语句. Breakpoint 断点 在调试器中设定的程序点,当程序执行到该点时,调试器将停止程序执行,以便让用户检查当前程序状态. bubble sort 冒泡排序 buffered input 带缓冲的输入 将输入按批处理方式集中处理,例如,每次要求输入一 行. byte 字节 一个0 到255之间的整数(8 个二进制位).事实上,目前所有计算机都将一个字节作为最小存储单元. C C++ standard library C++标准库 call a function 调用函数 call-by-reference 按引用调用 call-by-value 按值调用 called function 被调用函数 caller 调用者 calling function 调用函数 call stack 调用栈 当前所有被调用且未终止运行的函数集合,从当前函数开始,直至main函数结束. cascaded overloaded operators 连续使用重载的运算符 case lable case标号 case sensitive 大小写相关 区分字母的大小写. cast 强制类型转换 将值由一种类型转换为另一种类型.例如,C++中将浮点数x转换成整型数,可以用强制类型转换static_cast<int>(x)来实现. cast operator 强制类型转换运算符 cast operator function 强制类型转换运算符函数 catch a group of exceptions 捕获一组异常 catch an exception 捕获一个异常 catch argument catch参数 catch block catch块 central processing unit(CPU) 中央处理单元 执行机器指令的计算机部件. character code 字符编码 character constant 字符常量 character pointer 字符指针 character set 字符集 cin.get() function cin.get()函数 cin object cin对象 cin属于某个iostream从派生的类 clarity 清晰性 class 类 程序员自定义的数据类型. class Array Array 类 class Date Date 类 class definition 类定义 class hierarchy 类层次 class Huge Integer Huge Integer类 class libraries 类库 class member selector operator(.) 类成员选择运算符 class Phone Number Phone Number类 class scope 类范围 class String String类 class template 类模板 class template name 类模板名 Classes, Responsibilities and Collaborations(CRC)类、责任与协作 client of a class 类客户 clint/server computing 客户/服务器计算 coercion of arguments 强制参数类型转换 collaboration 协作 column subscript 列下标 command line 命令行 在Windows或UNIX的命令窗口中运行程序所键入的行,包括应用程序名和命令行参数. comment(//) 注释语句 为帮助他人理解程序代码而编写的解释说明,它将被编译程序忽略. comparing strings 比较字符串 compiler 编译程序 将高级语言(例如C++)所编写的代码转换为机器指令的程序. compile error 编译错误 compile-time error 编译时错误 component 组件 composition 复合 compound statement 复合语句 由多个语句组成的语句可,可作为if或for语句体. computer program 计算机语言 concatenation 连接 将一个串放到另一个串的后面. concrete class 具体类 condition 条件 conditional operator(?:) 条件运算符 const 一个关键字 其声明的量具有不易改变的性质,而系统保留其类型属性和作用域,必要时保留地址属性 const type qualifier const类型限定符 constant variable 常量变量 constant pointer 常量指针 constant pointer to non-constant data 非常量数据的常量指针 constant 常量 程序中不能更改的值. constructor 构造函数 通过初始值创建对象的函数. continue 一种语句 用在循环语句中,其作用为结束本次循环 control structure 控制结构 conversion between built-in types and classes 类和内部类型之间的转换 conversion between class types 类类型之间的转换 conversion constructor 转换构造函数 conversion function 转换函数 conversion operator 转换运算符 convert derived-class pointer to base-class pointer将派生类指针变为基类指针 copy constructor 复制构造函数 用一个对象的副本来初始化另一个对象的函数 copy of a value 数值副本 copying strings 复制字符串 counter-controlled repetition 计数器控制重复 coupling 耦合 表示类与类之间的依赖程度. cout object cout对象 cout属于从某个ostream派生的类 crafting valuable classes 构造重要类 customize software 定制的软件 D dangling pointer 悬挂指针 未指向有效空间的指针. dangling reference 悬挂引用 data 数据 data field 数据成员 类对象中出现的变量. data member 数据成员 date type 数据类型 debugger 调试器 允许用户运行其他程序,以便对其进行调试程序.在调试器中,被调试程序可以每执行一步或多步,终止运行,还可以查看变量的值等,用以分析程序是否存在缺陷. decision 判断 declaration 声明 用以说明变量,函数或类的存在,但并不定义它. declare an array 声明数组 decrement a pointer 递减指针 decrement operator(--) 自减运算符 default case in switch switch中的默认case default constructor 默认构造函数 没有参数的构造函数.’ #define 指令 用以定义常量和宏的指令,在欲处理阶段,#if和#ifdef指令也将需要这些值. default function arguments 默认函数参数 default member wise copy 默认的成员复制 definite repetition 确定重复 definition 定义 用于描述变量,类型,类及其属性或函数及其实现的语句或语句序列. delay loop 延迟循环 delete operator delete 运算符 用来回收动态(堆)内存的运算符. delimiter 分隔符 dereference a pointer 复引用指针 dereferencing 递引用 当一个指针指向一个对象时,用指针来获得对象. dereferencing operator(*) 复引用运算符 derived class 派生类 由基类派生的类, 通过增加数据成员或成员函数,重定义基类成员函数等方法改写基类. derived-class constructor 派生类构造函数 derived-class destructor 派生类析构函数 derived-class pointer 派生类指针 destructor 析构函数 当对象超出其作用域时被调用的函数. dictionary ordering 词典序 即字典序 directory 目录 在磁盘上文件的组织结构,可以包含文件或其他目录 direct base class 直接基类 directly reference a variable 直接引用变量 displacement into vtable vtable位移 distributed computing 分布式计算 divide and conquer 分而治之,各个击破 do/while repetition structure do/while 重复结构 dot member selection operator(.) 圆点成员选择运算符 dot notation 点运算符 用于存取对象中的成员. double-selection structure 双项选择结构 double-subscripted array 双下标数组 doubly linked list 双向链表 链表的节点都包含两个指针,分别指向其前继节点和 后继节点. dynamic binding 动态绑定 程序运行时,根据对象的类型来调用特定的函数. dynamic memory allocation 动态内存分配 在程序运行时,根据程序的需要分配内存. E early binding 提前关联 editor 编辑器 element of an array 数组元素 element of chance 机会元素 eliminating switch statements 消除switch语句 empty exception specification 空异常指定 empty statement 空语句 encapsulation 封装 隐藏实现细节. #endif 之间的代码包含进来的预处理指令 end of file 文件结束 如果文件中所有字符都被读取,则文件结束条件为注 意,并没有特定的文件结束字符.当从键盘输入来构一 个文件时,则需要键入一个特定的字符通知操作系统 文件结束,但该字符并不作为文件的一部分. enumeration 枚举 enumeration constant 枚举常量 enumerated type 枚举类型 一个带有有限数目的值类型,每个值都有自己的符名. escape character(\) 转义符 字面上没有任何含义的文本字符,但与其他字符或紧跟其后的字符结合起来时却有特定的含义. escape sequence 转义序列 exception 异常 用来指明某个导致程序无法正常执行的条件的类. 该条件发生时,系统就会抛出一个异常对象. exception handler 异常处理 当某个特定的异常被抛出并被捕获时,用来处理该异常的语句序列. executable file 可执行文件 有程序的机器指令构成的文件. execution-time error 执行时错误 explicit parameter 显式参数 函数的形参,而不是调用函数时的参数. explicit pointer conversion 显式指针转换 explicit type conversions(with casts) 显式类型转换(使用强制类型转换运算符) expression 表达式 由常量,变量,函数调用及其运算符构成的式子 extension 扩展名 文件名的后一部分,用来指定文件的类型. 例如,扩展 名.cpp表示C++文件. extensibility 可扩展性 extern storage class specifies extern存储类说明符 F factorial function 阶乘函数 failed stream state 失败的流状态 fatal error 致命错误 Fibonacci number 斐波纳契数列 field accessor 成员访问函数 field mutator 成员变异函数 file 文件 file pointer 文件指针 file scope 文件范围 file server 文件服务器 filed width 域宽 fixed-point format 定点格式 flags member function flags成员函数 floating-point number 浮点数 flow of control 控制流 flush member function flush成员函数 flush stream manipulator flush流操纵算子 folder 文件夹 for repetition structure for重复结构 formal parameter in a template header 模板首部中的形式参数 format flags 格式标志 format states 格式状态 formatted I/O 格式化I/O friend of a base class 基类友元 friend of a derived class 派生类友元 friend of a template 模板的友元 friend overloaded operator 函数调用运算符 fstream class fstream类 fully qualified name 完全限定名 function 函数 function call 函数调用 function declaration 函数声明 function definition 函数定义 function overloading 函数重载 function overriding 函数重定义 function pointer 函数指针 function prototype 函数原型 function scope 函数范围 function signature 函数签名 function template 函数模板 function template declaration 函数模板的声明 function template definition 函数模板的定义 G garbage collection 垃圾回收 garbage value 垃圾值 gcount member function gcount成员函数 get function get函数 get member function get成员函数 getline member function getline成员函数 global object 全局对象 global variable 全局变量 good member function good成员函数 goto statement goto语句 grep UNIX实用程序 H has a relationship "是"关系 head file 头文件 heap 堆 helper function 帮助函数 hex stream manipulator hex流操纵算子 hierarchical relationship 层次关系 high-level language 高级语言 I IDE 集成开发环境 identifier 标识符 #if 当条件为真时,指示编译程序将#if和与其相匹配的 if selection structur
展开阅读全文

开通  VIP会员、SVIP会员  优惠大
下载10份以上建议开通VIP会员
下载20份以上建议开通SVIP会员


开通VIP      成为共赢上传
相似文档                                   自信AI助手自信AI助手

当前位置:首页 > 通信科技 > 开发语言

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2025 宁波自信网络信息技术有限公司  版权所有

客服电话:4009-655-100  投诉/维权电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服