main.cpp
资源名称:ClassList.rar [点击查看]
上传用户:zbhuiyi
上传日期:2013-06-17
资源大小:13k
文件大小:0k
源码类别:
Email服务器
开发平台:
Visual C++
- #include "iostream.h"
- #include "clCirList.cpp"
- void main()
- {
- int array[]={1,2,3,4,5,6,7,8,9,10};int count;
- ST_node *phead;
- phead=clCirList::ArrayToCirList(array,10);
- clCirList::Show(phead);
- count=clCirList::CountNode(phead);
- cout<<endl<<"There are "<<count<<" nodes"<<endl;
- clCirList::Invert(phead);
- clCirList::Show(phead);
- clCirList::FreeList(phead);
- }