文章分类 -  数据结构与算法

数据结构与算法学习心得
摘要:制定迭代器协议:# ifndef _CIterator_h# define _CIterator_htemplate < class Object >class CIterator {public: virtual ~CIterator( ) { } virtual bool hasNext( ) const = 0 ; virtual const Object& next( ) = 0 ;} ;# endif应用迭代器:# include <vector># include "CIterator.h"using std::vector ;t 阅读全文
posted @ 2012-05-02 22:03 crazylhf 阅读(203) 评论(0) 推荐(0)