数据结构 · 编程题 一、链表 1. 链表的遍历 2. 对单链表进行基本操作 //类型定义 #define maxlength 100 struct LIST { elementtype elements[maxlength]; int last; }; typedef int position; //基本操作 void Insert(elementtype x,position p,LIST &L) //把x插入表L位置p处 { position q; if(L