Title :
The use of the This pointer in helping students to understand C++ programs soundly
Author :
Xiaohui, Li ; Ruiqing, Ou
Author_Institution :
Comput. .Sci. Dept., Tangshan Teachers Coll., Tangshan, China
Abstract :
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.
Keywords :
C++ language; computer science education; storage management; C++ programs; This pointer; dynamic memory allocation; dynamic memory deallocation; object construction; object destruction; C++ programming language; This pointer; construction; destruction; memory; program;
Conference_Titel :
Educational and Information Technology (ICEIT), 2010 International Conference on
Conference_Location :
Chongqing
Print_ISBN :
978-1-4244-8033-3
Electronic_ISBN :
978-1-4244-8035-7
DOI :
10.1109/ICEIT.2010.5607597