摘要
this指针是一个指向正在被某个成员函数操作的对象的指针的特殊指针。利用它可以深入理解C++程序中对象的构造和析构,了解对象在内存中的分配及释放情况,从而进一步地理解程序。
"This" pointer is a special pointer which points to address of an object whose member function is being run. Using "this" pointer, we may understand the process of one object's construction and destruction in C++ programs and know that how to assign memory to one object and free the memory in order to understand the programs better.
出处
《唐山学院学报》
2007年第4期90-92,共3页
Journal of Tangshan University
关键词
this指针
内存
对象
构造
析构
"this" pointer~ memory
object
construct
destruct