pointer-like class C++|封装裸指针为像指针的类( 二 )

list; for(int i=0;i<=5;i++)list.push_front(i);for(linkedList::iterator itr = list.begin();itr!=list.end();++itr)cout<<*itr<<' '; cin.get(); return 0;}// 5 4 3 2 1 0 




推荐阅读