Allows defining a destructor function that runs when an object is destroyed.
允许定义一个析构函数当对像崩溃的时候运行。
To create your constructor and destructor, declare two functions, then apply the constructor and destructor function attributes to them.
要创建constructor和destructor函数,则需要声明两个函数,然后对这两个函数应用constructor和destructor函数属性。
The constructor function is invoked immediately prior to main being called; and the destructor function is called when your application exits.
constructor函数是在调用main函数之前调用的,而destructor 函数则是在应用程序退出时调用的。
In the constructor function, a new trace file is opened into which the profiling address trace will be written; within the destructor function, the trace file is closed (see Listing 3).
在constructor函数中,会打开一个新的跟踪文件,分析数据的地址跟踪就是写入这个文件的;在destructor函数中,会关闭这个跟踪文件(参见清单3)。
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函数提供了一些碰巧能够满足这个要求一些方法。
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的功能跟踪构造函数、析构函数和成员函数的执行顺序。
应用推荐