摘要: 最近准备找工作了,在复习数据结构,下面是用C++写的顺序表的一个类(头文件)//公元2013年3月15日 //Sequence List--By Paul #ifndef _SeqList_ #define _SeqList_ const int defaultSize=100; template class SeqList{ public: SeqList(int SZ=defaultSize):m_nmaxsize(SZ),m_ncurrentsize(-1){ if (SZ>0){ m_elements=new Type[m_nmaxsize]; } } ~... 阅读全文
posted @ 2013-03-17 13:52 旧事乡里人 阅读(153) 评论(0) 推荐(0) 编辑