The constructor and destructor methods of this object do the necessary setup and cleanup.
这个对象的constructor和destructor方法执行必需的设置和清除工作。
The constructor and destructor of the queue class are responsible for the creation and destruction of the mutex, as shown in Listing 1.
队列类的构造函数和析构函数负责创建和销毁互斥锁,见清单1。
To create your constructor and destructor, declare two functions, then apply the constructor and destructor function attributes to them.
要创建constructor和destructor函数,则需要声明两个函数,然后对这两个函数应用constructor和destructor函数属性。
The GCC developers thought of this, too, and provided the means for a main function constructor and destructor that happen to fit this need perfectly.
gcc的开发者也考虑过这个问题,它们为main函数的constructor函数和destructor函数提供了一些碰巧能够满足这个要求一些方法。
Figure 1 shows a constructor with two arguments of type Point and a destructor modeled for the DrawingSurface class of the sample application used here for illustration purposes.
图1展示了为示例应用程序(在这里用于举例)的drawingsurface类建模的带有两个Point类型参数的构造方法和一个析构方法。
Modeling constructor, destructor, and copy constructor.
建模构造函数、分析构造函数,以及拷贝构造函数。
The constructor function is invoked immediately prior to main being called; and the destructor function is called when your application exits.
constructor函数是在调用main函数之前调用的,而destructor 函数则是在应用程序退出时调用的。
Put the functionality you need in separate functions called by the destructor and the copy constructor and the assignment operator.
放在单独的功能调用析构函数和拷贝构造函数和赋值运算符你所需要的功能。
To manage a class with pointer members, we must define all three copy-control members: the copy constructor, assignment operator, and the destructor.
为了管理具有指针成员的类,必须定义三个复制控制成员:复制构造函数、赋值操作符和析构函数。
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.
将输出语句添加到构造函数、析构函数和复制构造函数,以查看在运行程序时命名返回值优化的效果。
Understand and master the constructor, destructor, copy constructor, default constructor and default constructor parameters, to define methods and objects of the structure and the role of withdrawal.
理解并掌握构造函数、析构函数、拷贝构造函数、默认构造函数和缺省参数的构造函数的含义、定义方法以及在对象的构造和撤消中的作用。
T need supply only a single-argument constructor and a destructor.
为什么需要支持单参数的构造函数和析构函数呀?
The function of using VC6 Debug trace constructor, destructor and member functions are executed.
用VC6的Debug的功能跟踪构造函数、析构函数和成员函数的执行顺序。
The function of using VC6 Debug trace constructor, destructor and member functions are executed.
用VC6的Debug的功能跟踪构造函数、析构函数和成员函数的执行顺序。
应用推荐