main.cpp
上传用户:zbhuiyi
上传日期:2013-06-17
资源大小:13k
文件大小:0k
源码类别:

Email服务器

开发平台:

Visual C++

  1. #include "iostream.h"
  2. #include "clCirList.cpp"
  3. void main()
  4. {
  5. int array[]={1,2,3,4,5,6,7,8,9,10};int count;
  6. ST_node *phead;
  7. phead=clCirList::ArrayToCirList(array,10);
  8. clCirList::Show(phead);
  9. count=clCirList::CountNode(phead);
  10. cout<<endl<<"There are "<<count<<" nodes"<<endl;
  11. clCirList::Invert(phead);
  12. clCirList::Show(phead);
  13. clCirList::FreeList(phead);
  14. }