(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, ...
随机推荐
- UVa 103 Stacking Boxes --- DAG上的动态规划
UVa 103 题目大意:给定n个箱子,每个箱子有m个维度, 一个箱子可以嵌套在另一个箱子中当且仅当该箱子的所有的维度大小全部小于另一个箱子的相应维度, (注意箱子可以旋转,即箱子维度可以互换),求最 ...
- 《Java程序设计》第3周学习总结
学号20145220<Java程序设计>第3周学习总结 教材学习内容总结 使用jave撰写程序几乎都在使用对象(Object),要产生对象必须先定义类(Class),类是对象的设计图,对象 ...
- Twsited异步网络框架
Twisted是一个事件驱动的网络框架,其中包含了诸多功能,例如:网络协议.线程.数据库管理.网络操作.电子邮件等. Twisted介绍:http://blog.csdn.net/hanhuili/a ...
- 【转】IOS图像拉伸解决方案
原文网址:http://www.cnblogs.com/ios8/p/ios-pic-lashen.html UIButton实现背景拉伸,即图片两端不拉伸中间拉伸的办法有如下两种: 第一种方法很简单 ...
- css2图片边框
用父元素的背景作为边框图片 父元素的背景既可以是不平铺的成品边框图片,也可以是平铺的图片,填充子元素和父元素之间的padding 然后给子元素设置背景色或背景图覆盖掉父元素的背景图.
- 受限玻尔兹曼机RBM
相关算法 python代码参考http://blog.csdn.net/zc02051126/article/details/9668439#(作少量修改与注释) #coding:utf8 impor ...
- ABBYY FineReader 12最新官方版下载
ABBYY FineReader是市场领先的文字识别(OCR)软件,可快速方便地将扫描纸质文档.PDF文件和数码相机的图像转换成可编辑.可搜索的信息,ABBYY FineReader 12是目前最新版 ...
- unity, ugui input field
ugui Input Field,获取输入的字符串. 错误方法: string content=inputField.FindChild("Text").text; 这样得到的是输 ...
- Oracle 支持正则表达式的函数
内容提要 oracle 10g 增加的正则表达式函数有以下四种: regexp_like() --返回满足条件的字段 regexp_instr() --返回满足条件的字符或字符串的位置 regexp_ ...
- Spring的依赖注入(DI)三种方式
Spring依赖注入(DI)的三种方式,分别为: 1. 接口注入 2. Setter方法注入 3. 构造方法注入 下面介绍一下这三种依赖注入在Spring中是怎么样实现的. 首先我们需要以下几个 ...