放在单独的功能调用析构函数和拷贝构造函数和赋值运算符你所需要的功能。
Put the functionality you need in separate functions called by the destructor and the copy constructor and the assignment operator.
用VC6的Debug的功能跟踪构造函数、析构函数和成员函数的执行顺序。
The function of using VC6 Debug trace constructor, destructor and member functions are executed.
将输出语句添加到构造函数、析构函数和复制构造函数,以查看在运行程序时命名返回值优化的效果。
Add output statements to the constructor, destructor and copy constructor to see the effect of the Named Return Value optimization when you run the program.
应用推荐