摘要
this指针是由系统自动生成的,隐含于每一个类的成员函数中的特殊指针,该指针指向正在对某个成员函数操作的对象。该文通过实例及其汇编代码详细地分析了this指针的特点和它的使用方法,从而进一步的理解C++中的对象和其在内存中的分配情况。
this pointer is a special pointer that hidden in every class member function automatically generated by system. It points to the object of operating to a member function.the article analyses characteristics of this pointer and its application method by instances and their assembly code, so as to understanding of objects in C++ and its distribution in memory.
出处
《电脑知识与技术(过刊)》
2014年第7X期4738-4739,共2页
Computer Knowledge and Technology