头文件声明 #include <stdio.h> #include <stdlib.h> //元素类型定义 typedef int ElemType; //头结点定义 typedef struct DNode{ ElemType data;//数据域 struct