龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > 软件开发 > VC开发 >

使用VC开发程序经验谈(二 续)(3)

时间:2009-12-30 15:42来源:未知 作者:admin 点击:
分享到:
} return 0; } ////////////////////////////////////////////////////////////////////// // CShape Class ////////////////////////////////////////////////////////////////////// ////////////////////////////

         }

         return 0;

}

//////////////////////////////////////////////////////////////////////

// CShape Class

//////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////

// Construction/Destruction

//////////////////////////////////////////////////////////////////////

CShape::~CShape()

{

         list<CMyBase*>::iterator iter;

         for(iter=m_List.begin();iter!=m_List.end();iter++)

         {

                   delete (*iter);

         }

         m_List.clear();

}

int CShape::Draw(long lDevice)

{

         list<CMyBase*>::iterator iter;

         for(iter=m_List.begin();iter!=m_List.end();iter++)

         {

                  (*iter)->Draw(lDevice);

         }

         return 0;

}

 

精彩图集

赞助商链接