本文档全部是用英文版书的,内容主要是c++相关的面试题。涉及到了c++面试题的各个方面,c基础编程,c++面向对应编程,stl标准库编程,高性能高安全内存分配,网络编程等。
Good C++ Interview Questions(2011-06-15 22:03:27)[编辑][删除]
标签: 杂谈
doc.guandang.net
Good C++ Interview Questions
C++ Questions
What are the major differences between C and C++?
What are the differences between new and malloc?
What is the difference between delete and delete[]?
What are the differences between a struct in C and in C++?
What are the advantages/disadvantages of using #define?
What are the advantages/disadvantages of using inline and const?
What is the difference between a pointer and a reference?
When would you use a pointer? A reference?
What does it mean to take the address of a reference?
What does it mean to declare a function or variable as static?
What is the order of initalization for data?
What is name mangling/name decoration?
What kind of problems does name mangling cause?
How do you work around them?
What is a class?
What are the differences between a struct and a class in C++?
What is the difference between public, private, and protected access?
For class CFoo { }; what default methods will the compiler generate for you>?
How can you force the compiler to not generate them?
What is the purpose of a constructor? Destructor?
What is a constructor initializer list?
When must you use a constructor initializer list?
What is a:
Constructor?
Destructor?
Default constructor?
Copy constructor?
Conversion constructor?
What does it mean to declare a...
member function as virtual?
member function as static?
member function as static?
member variable as static?
destructor as static?
Can you explain the term "resource acquisition is initialization?"
What is a "pure virtual" member function?
What is the difference between public, private, and protected inheritance?
What is virtual inheritance?
What is placement new?
What is the difference between operator new and the new operator?
What is exception handling?
Explain what happens when an exception is thrown in C++.
What happens if an exception is not caught?
What happens if an exception is throws from an object's constructor?
What happens if an exception is throws from an object's destructor?
What are the costs and benefits of using exceptions?
When would you choose to return an error code rather than throw an exception?
What is a template?
What is partial specialization or template specialization?
How can you force instantiation of a template?
What is an iterator?
What is an algorithm (in terms of the STL/C++ standard library)?
What is std::auto_ptr?
What is wrong with this statement? std::auto_ptr ptr(new char[10]);
It is possible to build a C++ compiler on top of a C compiler. How would you do this? (Note: I've only asked this question once; and yes, he understood that I was asking him how cfront was put together. We hired him.)
暂时发布问题,大家集思广益,争取把每个问题讨论的充分一点,我
C++经典面试题_IT/计算机_专业资料。里面包含一些经典的C++面试题C++常见试题 1 (1) SIZEOF CONST 预处理题目对于 struct s{char a; int b}; sizeof(s) =...
C++经典面试题_专业资料。C++经典面试题经典C++面试题(a) 1.介绍一下 STL,详细说明 STL 如何实现 vector。 STL (标准模版库,Standard Template Library)它由...
C++程序经典面试题汇总来源:开发界 http://www.kaifajie.cn 1.是不是一个父类写了一个 virtual 函数,如果子类覆盖它的函数不加 virtual ,也能实现多态? ...
100条经典C++笔试题目 100条经典 条经典C++语言笔试题目 条经典 语言笔试题目题目来源: 1、中兴、华为、慧通、英华达、微软亚洲技术中心等中 外企业面试题目; 2、...
内功题试题1:分别给出BOOL,int,float,指针变量 与“零值”比较的 if 语句(假设变量名为var)解答: BOOL型变量:if(!var) int型变量: if(var==0) float型...
c/c++经典面试试题及标准答案 经典面试试题及标准...1.How good do you see yours programming skills?...Questions:(for extra credits) 15.Please write a...
C++面试题经典问题_IT/计算机_专业资料 暂无评价0人阅读0次下载举报文档 C++面试题经典问题_IT/计算机_专业资料。面试问题今日推荐 ...
经典c++面试题(Good C++... 2页 1下载券 Job Interview Question... 43页...I rely on asking questions and finding people receptive,so cooperation and ...
经典C++面试题:成为C++程序员之路 1,关于动态申请内存 答:内存分配方式三种: (1)从静态存储区域分配:内存在程序编译的时候就已经分配好,这块内存在程序的整个运行...
C、C++语言面试题 2007-07-15 18:57 1.已知 strcpy 函数的原型是: char *strcpy(char *strDest, const char *strSrc); 其中 strDest 是目的字符串,strSrc ...
热门文档