摘要
C++语言中,指针应用的误区可以分为操作空指针、内存泄露、重复释放、误用常量指针和常量指针四个方面。本文给出了可能的错误场景,并给出解决方法。
In C++ programming language,the pitfalls of the pointer can be divided into fly pointer errors,memory leaks,repeated release and the misuse of the pointer to the constant value and the constant pointer.In this paper,the possible error contexts and corresponding solutions were given.
出处
《电脑编程技巧与维护》
2010年第8期134-135,共2页
Computer Programming Skills & Maintenance
关键词
C++语言
指针
内存操作
C++ programming language
pointer
memory operation