利用this指针深入理解C++程序  被引量:2

Better Understanding C++ Program with "This" Pointer

在线阅读下载全文

作  者:李隆庚[1] 李小慧[2] 杜瑞庆[2] 

机构地区:[1]唐山师范学院信息技术中心,河北唐山063000 [2]唐山师范学院计算机系,河北唐山063000

出  处:《唐山学院学报》2007年第4期90-92,共3页Journal of Tangshan University

摘  要: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.

关 键 词:this指针 内存 对象 构造 析构 

分 类 号:TP31[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象