Young's Blog

包子铺

2010年6月13日 #

使用成员初始化列表时要注意责任分明

     摘要: 碰到的成员初始化列表问题
程序如下:

class Parent
{
public:
Parent()
{
cout<<"Parent::Parent()"< }
Parent(int n)
{
m_Num=n;
cout<<"Parent::Parent("< }  阅读全文

posted @ 2010-06-13 15:12 Young 阅读(1230) | 评论 (0)编辑 收藏