摘要:        
对于内置类型以外的初始化责任落在构造函数身上。如下:class PhoneNumber{};class ABEntry{public: ABEntry( const string& name, const string& address, const list& phones );private: string theName; string theAddress; list thePhones; int numTimesConsulted;};ABEntry::ABEntry( const string& name, const string& add    阅读全文
posted @ 2013-07-10 11:46
2011winseu
阅读(687)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号