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

C++指针应用的四大误区
引用本文:马宇哲.C++指针应用的四大误区[J].电脑编程技巧与维护,2010(8):134-135.
作者姓名:马宇哲
作者单位:天津工业大学,天津,300160
摘    要:C++语言中,指针应用的误区可以分为操作空指针、内存泄露、重复释放、误用常量指针和常量指针四个方面。本文给出了可能的错误场景,并给出解决方法。

关 键 词:C++语言  指针  内存操作

Four Misusing Ways of Pointers in C++
MA Yuzhe.Four Misusing Ways of Pointers in C++[J].Computer Programming Skills & Maintenance,2010(8):134-135.
Authors:MA Yuzhe
Affiliation:Tianjin Polytechnic University;Tianjin 300160
Abstract: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.
Keywords:C++ programming language  pointer  memory operation  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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