面试C++试题[10]

[入库:2005年8月19日] [更新:2007年3月24日]

本文简介:选择自 x1001 的 blog

         public:

              string(const char *str = null);  // 普通构造函数

              string(const string &other);           // 拷贝构造函数

              ~ string(void);                                  // 析构函数

              string & operator =(const string &other); // 赋值函数

        private:

              char         *m_data;                            // 用于保存字符串

       };

 

// string的析构函数

string::~string(void)               // 3

本文关键:C++,林锐,面试试题
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top