Some rules of C++ programming

Posted on 2005-08-26 12:18 罗明 阅读(246) 评论(0)  编辑  收藏 所属分类: C++
  1. Use std::string instead of char * or char []
  2. Use standard containers instead of homegrown containers
  3. Manage your class data to avoid resource leaks and crashes
  4. Use virtual destructors in class hierarchies
  5. Use smart pointers instead of raw pointers


版权所有 罗明

标题  
姓名  
主页
验证码 *  
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交