摘要:
#include using namespace std;#define Maxsize 100typedef int ElemType;typedef struct{ ElemType data;//数字域 int next;//游标域}StaticList[Maxsize];void CreateList(StaticList L, ElemType a[], int n){ L[0].next=1; for(int i=1;i<=n;i++) { L[i].data=a[i-1]; L[i].next=i+1; } L[n].next=0;}void Display(StaticL 阅读全文