See CObList::CObList for a listing of the CAge class. CObList list;
POSITION pos;
CptrList类的例子,在msdn中的。。
你看看有没有帮助巴 list.AddHead( new CAge( 21 ) );
list.AddHead( new CAge( 40 ) ); // List now contains (40, 21).
// Iterate through the list in head-to-tail order.
#ifdef _DEBUG
for( pos = list.GetHeadPosition(); pos != NULL; )
{
afxDump << list.GetNext( pos ) << "\n";
}
#endif
POSITION pos;
CptrList类的例子,在msdn中的。。
你看看有没有帮助巴 list.AddHead( new CAge( 21 ) );
list.AddHead( new CAge( 40 ) ); // List now contains (40, 21).
// Iterate through the list in head-to-tail order.
#ifdef _DEBUG
for( pos = list.GetHeadPosition(); pos != NULL; )
{
afxDump << list.GetNext( pos ) << "\n";
}
#endif
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货