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