首页 | 本学科首页   官方微博 | 高级检索  
     检索      

利用this指针深入理解C++程序
引用本文:李隆庚,李小慧,杜瑞庆.利用this指针深入理解C++程序[J].唐山学院学报,2007,20(4):0-92.
作者姓名:李隆庚  李小慧  杜瑞庆
作者单位:1. 唐山师范学院,信息技术中心,河北,唐山,063000
2. 唐山师范学院,计算机系,河北,唐山,063000
摘    要:this指针是一个指向正在被某个成员函数操作的对象的指针的特殊指针。利用它可以深入理解C++程序中对象的构造和析构,了解对象在内存中的分配及释放情况,从而进一步地理解程序。

关 键 词:this指针  内存  对象  构造  析构
文章编号:1672-349X(2007)04-0090-03
修稿时间:2007-03-15

Better Understanding C++ Program with "This" Pointer
LI Long-geng,LI Xiao-hui,DU Rui-qing.Better Understanding C++ Program with "This" Pointer[J].Journal of Tangshan College,2007,20(4):0-92.
Authors:LI Long-geng  LI Xiao-hui  DU Rui-qing
Institution:1. Information Technology Center, Tangshan Teachers College, Tangshan 063000, China; 2. Computer Department, Tangshan Teachers College, Tangshan 063000, China
Abstract:"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.
Keywords:"this" pointer  memory  object  construct  destruct
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号