(C/C++) Interview in English - Basic concepts.
|
|
Question |
Key words |
Anwser |
|
A |
assignment operator |
|
|
|
|
abstract class |
|
It is a class that has one or more pure virtual functions. |
|
|
assignment & |
constructed -> |
Assignment changes |
|
|
array & |
|
An array is a |
|
|
argument passing |
call-by-value |
call-by-value. This |
|
B |
|
|
|
|
C |
constructor |
object , initialize |
Constructor creates |
|
|
copy constructor |
initialze by |
Constructor which |
|
|
conversion constructor |
single argument |
constructor with a |
|
|
const reference |
|
a) Using const |
|
|
container class |
|
A container class |
|
|
const |
|
表示常量不可以修改 |
|
|
|
|
|
|
D |
destructor |
delete |
Destructor usually |
|
|
data structure |
|
A data structure is |
|
|
|
|
|
|
E |
encapsulation |
code and data |
Encapsulation is |
|
F |
|
|
|
|
G |
globle variable |
|
In memory storage |
|
H |
Heap & |
|
Heap是堆,空间是由手动操作分配和释放的,它的存储区很大的自由存储区。 |
|
I |
inheritance |
derived |
Inheritance is a |
|
|
Iterator class |
traverse |
A class that is |
|
|
inline function |
expanded |
An inline function |
|
J |
|
|
|
|
K |
|
|
|
|
L |
|
|
|
|
M |
malloc()/free(), |
memory , |
1)malloc()/free() |
|
|
memory allocation |
|
1)static 内存在程序编译的时候就已经分配好,这块内存在程序的整个运行期间都存在。例如全局变 |
|
N |
|
|
|
|
O |
Overloading (重载) & |
Same function name |
Overloading is a |
|
P |
polymorphism |
virual funcition , |
one interface, |
|
|
private,protected,public |
members and friend |
Private members are |
|
|
pure virtual |
virtual void |
A pure virtual |
|
|
potinter & |
initialization/change/void |
1) Reference must |
|
Q |
|
|
|
|
R |
reference |
& |
C++’s default |
|
S |
struct & class |
default access |
The default access |
|
|
static member of a |
exist once |
Static data members |
|
|
static |
|
1) static Local |
|
|
signature |
|
Function's |
|
|
Silently write and |
|
Constructors, |
|
|
storage classes |
auto/register/static/extern |
auto: the default. Variables are automatically created and |
|
T |
template & |
|
Using |
|
|
this pointer |
object's function |
The this pointer is |
|
U |
using' declaration? |
|
A using declaration |
|
V |
virtual & |
run-time |
The behavior of a |
|
|
virtual function |
derived class |
虚函数是指在基类中使用了vitual申明,并且在一个或多个派生类中被重新定义的函数 |
|
|
Virtual Destructor? |
|
sing virtual |
|
|
volatile |
|
volatile 确保本条指令不会因编译器的优化而省略,且要求每次直接读值.
简单地说就是防止编译器对代码进行优化.
比如:操作系统、硬件或者其它线程等。遇到这个关键字声明 |
(C/C++) Interview in English - Basic concepts.的更多相关文章
- Basic Concepts of Block Media Recovery
Basic Concepts of Block Media Recovery Whenever block corruption has been automatically detected, yo ...
- (二)Basic Concepts 基本概念
Basic Concepts There are a few concepts that are core to Elasticsearch. Understanding these concepts ...
- CMUSphinx Learn - Basic concepts of speech
Basic concepts of speech Speech is a complex phenomenon. People rarely understand how is it produced ...
- Nginx Tutorial #1: Basic Concepts(转)
add by zhj: 文章写的很好,适合初学者 原文:https://www.netguru.com/codestories/nginx-tutorial-basics-concepts Intro ...
- (C/C++) Interview in English - Threading
Q. What's the process and threads and what's the difference between them? A. A process is an execut ...
- (C/C++) Interview in English. - Memory Allocation/Deallocation.
Q: What is the difference between new/delete and malloc/free? A: Malloc/free do not know about const ...
- (C++) Interview in English. - Constructors/Destructors
Constructors/Destructors. 我们都知道,在C++中建立一个类,这个类中肯定会包括构造函数.析构函数.复制构造函数和重载赋值操作:即使在你没有明确定义的情况下,编译器也会给你生成 ...
- [Network]Introduction and Basic concepts
[该系列是检讨计算机网络知识.因为现在你想申请出国.因此,在写这篇博客系列的大多数英语.虽然英语,但大多数就是我自己的感受和理解,供大家学习和讨论起来] 1 Network Edge The devi ...
- Lesson 1 Basic Concepts: Part 1
www.how-to-build-websites.com/basic-concepts/part1.php An introduction to domain names, web servers, ...
随机推荐
- Linux1.0源代码编译过程
根据源代码包中的readme文件及http://chfj007.blog.163.com/blog/static/173145044201191195856806/?suggestedreading& ...
- Redis常用操作
一.string类型的常用命令 set key1 com #一个key对应一个value,多次复制,会覆盖前面的value setnx key1 zhangsan #如果key1不存在则创建key1, ...
- scala言语基础学习三(面向对象编程)
定义一个简单的类 //定义类,包含field以及方法 自定义的getter 和setter 仅仅暴露field的getter和setter方法 private[this]的使用 (只能在当前实例中使用 ...
- 学生管理系统-火车订票系统 c语言课程设计
概要: C 语言课程设计一---学生管理系统 使使用 C 语言实现学生管理系统.系统实现对学生的基本信息和考试成绩的 管理.采用终端命令界面,作为系统的输入输出界面.采用文件作为信息存储介质. 功能描 ...
- 在创建窗口句柄之前,不能在控件上调用 Invoke 或 BeginInvoke 解决办法
增加IsHandleCreated 判断 if (this.IsHandleCreated) { this.Invoke(new EventHandler(delegate { ...... })); ...
- C++面向对象要点
先说说面向对象思想的一个总体认识 对象通常会有行为,这些行为是靠信息支撑,这些信息包括外部信息和内部信息,对象行为会维护其中的一部分信息 因此对象可以看成是这样一种实体,它获取信息,然后决定自己的行为 ...
- C#字符补位
C#字符补位 .byte类型的字符,用5位2进制数表示,右对齐,不足5位,前面补零. byte b; Convert.ToString(b, ).PadLeft(, ') .byte类型的字符,用2位 ...
- phpstorm编辑器智能提示框架代码
按照上面的步骤就可以智能提示代码了!
- 原版本的jquery 开发过程中发现jquery好像更新了
/*! jQuery v1.7.1 jquery.com | jquery.org/license */ (function(a,b){function cy(a){return f.isWindow ...
- 关于jquery easyui treegrid的问题
我是用的django web开发架构: 想实现如下功能: 权限架构 点击checkbox时,能获取该checkbox的值: 代码如下: <tr> <th field="na ...