Skip to Main Content
The This pointer is a special pointer, which point the address of an object whose member function is being run. Using the This pointer in teaching C++ programming language is able to help students understanding the process of one object's construction and destruction soundly. It is also helpful in students' understanding the principle of dynamic memory allocation and dynamic memory deallocation. This paper listed several example programs to illustrate how to help students to understand c++ programs soundly.