数据结构与算法分析——c语言描述 练习3.1 答案
main.c
#include"list.h"
#include<stdio.h>
#define N 1208
void printAll(List l) {
Position p = Advance(l);
while (p) {
printf("%d ", Retrieve(p));
p=Advance(p);
}
}
int main() {
List l = CreatList();
for (int i = 0; i < N; i++)
Insert(i, l, l);
printAll(l);
}