1.友元
友元(机制)允许一个类对其非公有成员的访问权授予指定的函数或类。
友元声明可以出现在类中的任何地方:友元不是授予友元关系的那个类的成员,所以它们不受其声明出现部分的访问控制影响。
通常将友元声明成组地放在类定义的开始或结尾是个好主意。
2.什么情况调用拷贝构造函数?
3.list<T> 忘了具体考什么了
4.一元操作符有哪些
5.malloc函数相关
6.产生多态的条件--虚函数需要在基类和派生类都声明virtual吗?
7.控制进程函数
8.覆盖,重载,overload,override
10.Vector拷贝构造函数如何声明定义
Class Vector
{
public:
Vector();
~Vector();
copy constructor;
};
12.Oject-Oriented does a subsystem reflect
A.Encapsulation & Modularity
B.Abstruction C.Realization D.Polymorphism E.Association
13.线程条件变量问题
A.Acquire the mutex;
B.Test the predicate;
C............
D.cond_wait() and go to A or B ?
14.设计模式
15.describe system procedure SP_HELPJOINS?
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.ase_15.0.sprocs/html/sprocs/sprocs134.htm
16.指针问题
int arr[5] = {2,4,6};
int *p = arr;
选出下列语句哪个能打印出6?
A.p[2] B.arr[2] C.*(p + 2) D.*(p + *arr)
17.Which of the following options describe the functions of an overridden terminate() function?
A.It performs the desired cleanup and shutdown processing, and if it has restored the system to a stable state, it returns a value of "-1" to indicate successful recovery.
B.It performs the desired cleanup and shutdown processing, and then returns an error status value to the calling function.
C.It performs the desired cleanup and shutdown processing, and then calls abort() or exit().
D.It performs the desired cleanup and shutdown processing, and then throws a termination_exception.
E.It performs the desired cleanup and shutdown processing, and then calls the unexpected() handler.
网上答案:http://www.cplusplus.com/reference/std/exception/terminate/
19.std::auto_ptr template 智能指针是真心不懂,还没看过
20.类成员函数调用问题
A.指针->function B.(*指针).function这中不中?