英文文献中C++专业

对阅读英文c++文献有些许帮助

动态分配和撤销内存运算符new和delate(不是函数)
void vector_init(Vector& v, int s)
{ v.elem = new double[s]; // allocate an array of s doubles
v.sz = s; }

operator 运算符重载

构造函数 constructor 处理类别对象初始化。名字与类必须相同。不具有任何类型和返回值。

析构函数 destructor 特殊的成员函数
this 指针
常对象 const

类模板 template
转换构造函数 conversion constructor function
继承 inheritance
多重继承 multiple inheritance
多态性 polymorphism
动态关联 dynamic binding
滞后关联 late binding
变量引用 reference
内置函数 inline
共用体 union
属性 attribute
行为 behavior
抽象 abstraction

猜你喜欢

转载自blog.csdn.net/micheal2731/article/details/83592830