使用成員初始化列表時要注意責(zé)任分明
摘要: 碰到的成員初始化列表問題程序如下:
class Parent
{
public:
Parent()
{
cout<<"Parent::Parent()"<
Parent(int n)
{
m_Num=n;
cout<<"Parent::Parent("<
posted @ 2010-06-13 15:12 Young 閱讀(1256) | 評論 (0) 編輯
包子鋪
posted @ 2010-06-13 15:12 Young 閱讀(1256) | 評論 (0) 編輯