2024年2月8日发(作者:)

一、C++英语词汇

abstract [class] 抽象[类]

access 访问,存取

ambiguous 二义性,两义性

argument 参数

base [class] 基[类]

binding 联编,绑定

late binding 迟联编,迟绑定

dynamic binding 动态联编,动态绑定

class 类

constant [function, object] 常量[函数,对象]

construct function 构造函数

constructor 构造函数

declare 声明

default [parameter, construction function] 缺省[参数,构造函数]

derive 派生(类),导出(类)

destruct function 析构函数

destructor 析构函数

duplicate 复制

encapsulation 封装

formal parameter 形式参数

friend 友元

identifier 标识符

implementation 实现

inaccessible 不可访问的

inherit 继承

initializer 初始化参数

inline [function] 内联[函数]

instance 实例

instantiate 实例化

l-value 左值

member [variable, function] 成员[变量,函数]

namespace 名空间

object 对象

operator 运算符

overload 重载

override 同名覆盖

parameter 参数

polymorphism 多态性

private 私有的

protected 保护的

public 公有的

reference 引用

static 静态的

stream 流

template 模板

virtual [base class, function] 虚[基类,函数]

volatile 易变的

二、Visual C++ 6.0英语词汇

application program interface 应用程序接口(API)

class wizard 类向导

client area 客户区

component object modal 组件对象模型(COM)

console 控制台

control 控件

debug 调试(版)

device connection 设备连接,设备描述表(DC)

dialog based 基于对话框的

dialog box 对话框

directive 命令

document 文档

single document 单文档

multiple documents 多文档

dynamic-link library 动态链接库(DLL)

message 消息

message map 消息映像

multi-thread 多线程

nonclient area 非客户区

Microsoft Developer's Netwok 微软开发者之网(MSDN)

Microsoft foundation class 微软基础类(库)(MFC)

precompile 预编译

project 工程,项目

release 发行(版)

resource 资源

serialize 序列化

thread 线程

view 视图

visual 可视的

workspace 工程工作区,工程组

1

三、常见编译连接错误信息(按错误编号排序)

1、fatal error C1010: unexpected end of file while looking for precompiled header directive

寻找预编译头文件路径时遇到了不该遇到的文件尾。(一般是没有#include "stdafx.h")

2、fatal error C1083: Cannot open include file: 'R„„.h': No such file or directory

不能打开包含文件“R„„.h”:没有这样的文件或目录。

3、error C2011: 'C„„': 'class' type redefinition

类“C„„”重定义。

4、error C2018: unknown character '0xa3'

不认识的字符'0xa3'。(一般是写了汉字或中文标点符号)

5、error C2057: expected constant expression

希望是常量表达式。(一般出现在switch语句的case分支中)

6、error C2065: 'IDD_MYDIALOG' : undeclared identifier

“IDD_MYDIALOG”:未声明过的标识符。

7、error C2082: redefinition of formal parameter 'bReset'

形式参数“bReset”在函数体中重复定义。

8、error C2143: syntax error: missing ':' before '{'

句法错误:“{”前缺少“;”。

9、error C2146: syntax error : missing ';' before identifier 'dc'

句法错误:在“dc”前丢了“;”。

10、error C2196: case value '69' already used

值69已经用过。(一般出现在switch语句的case分支中)

11、error C2259: 'C„„' : cannot instantiate abstract class due to following members:

„„.h(..): see declaration of 'C„„'

由于下列成员(见类'C„„'中的声明),不能实例化抽象类。

12、error C2373: 'f1' : redefinition; different type modifiers

标识符(变量、函数等)重定义,用了不同的类型修饰符。

13、error C2509: 'OnTimer' : member function not declared in 'CHelloView'

成员函数“OnTimer”没有在“CHelloView”中声明。

14、error C2511: 'reset': overloaded member function 'void (int)' not found in 'B'

重载的函数“void reset(int)”在类“B”中找不到。

15、error C2512: 'C…' : no appropriate default constructor available

没有默认的构造函数可用。(通常在声明对象时没有填构造函数参数)

16、error C2555: 'B::f1': overriding virtual function differs from 'A::f1' only by return type or calling convention

类B对类A中同名函数f1的重载仅根据返回值或调用约定上的区别。

17、error C2572: 'f3' : redefinition of default parameter : parameter 2

f3函数的第2个缺省参数重复定义。

18、error C2660: 'SetTimer' : function does not take 2 parameters

“SetTimer”函数不传递2个参数。

19、error C2734: 'MAXCHAR' : const object must be initialized if not extern

MAXCHAR 常对象(变量)若不是extern的话必须初始化。

20、warning C4035: 'f„„': no return value

“f„„”的return语句没有返回值。

21、warning C4553: '= =' : operator has no effect; did you intend '='?

没有效果的运算符“= =”;是否改为“=”?

22、warning C4700: local variable 'bReset' used without having been initialized

2

局部变量“bReset”没有初始化就使用。

23、error C4716: 'CMyApp::InitInstance' : must return a value

“CMyApp::InitInstance”函数必须返回一个值。

24、LINK : fatal error LNK1168: cannot open Debug/ for writing

连接错误:不能打开文件,以改写内容。(一般是还在运行,未关闭)

25、error LNK2001: unresolved external symbol "public: virtual _ _thiscall C„„::~C„„(void)"

连接时发现没有实现的外部符号。(通常是变量、函数、静态数据成员等没定义)

3