linelistm.cpp
来自「一本数据结构的经典书籍-数据结构算法程序集里」· C++ 代码 · 共 23 行
CPP
23 行
//linelistm.cpp
#include<iostream.h>
#include<iomanip.h>
#include<conio.h>
#include "linelist.h"
#include "linelist.cpp"
void main()
{ clrscr();
cout<<"linelistm.cpp运行结果:\n";
List La;
List Lb(&La);
ElemType ch[10];
int k;
cout<<"首先调用插入函数.\n";
for(k=0;k<8;k++)
{ch[k]='a'+k;
La.ListInsert(k,ch[k]);}
cout<<"表La长:"<<La.ListLength()<<endl;
getch();//cin.get();按回车键
for(k=0;k<7;k++)
cout<<La.GetElem(k,&ch[k])<<',';
cout<<La.GetElem(k,&ch[k])<<endl;getch();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?