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


          版權(quán)所有 羅明
          posted on 2005-08-26 12:18 羅明 閱讀(497) 評論(0)  編輯  收藏 所屬分類: C++

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
           
          主站蜘蛛池模板: 长宁县| 大宁县| 茌平县| 潼南县| 红河县| 和静县| 永州市| 巨野县| 临武县| 紫金县| 冷水江市| 那曲县| 城口县| 江油市| 马关县| 永福县| 丰城市| 周宁县| 吉林省| 石家庄市| 镇安县| 福州市| 长阳| 灌阳县| 襄汾县| 喀喇| 兰溪市| 彭水| 莆田市| 华阴市| 临江市| 拜城县| 启东市| 扶绥县| 榆中县| 灵台县| 富裕县| 同江市| 闵行区| 杨浦区| 丽水市|