摘要: 1.赋值不一定是初始化。例如AClassName::AClassName(const std::string &name, const std::string &address, const std::list &phones){ theName = name; //这些都是赋值 theAddress = address; //而非初始化 thePhones = phones; numTimesConsulted = 0;}AClassName::AClassName(const std::string &name, const st... 阅读全文
posted @ 2013-08-16 16:55 风风清清扬扬 阅读(182) 评论(0) 推荐(0) 编辑