摘要:
1 #include 2 #include 3 #include 4 5 #define OK 1 6 #define ERROR 0 7 8 typedef struct { 9 int x; 10 int y; 11 }Point; 12 13 typedef struct { 14 Point *pt; 1... 阅读全文
摘要:
1 #include 2 3 #define MAZSIZE 20 4 typedef int ElemType; 5 typedef struct { 6 ElemType data[MAZSIZE]; 7 int length; 8 }ArrList; 9 10 #define OK 1 11 #define ERROR 0 1... 阅读全文
摘要:
线性表List:零个或多个数据元素的有限序列。n=0为空表。每个元素有且仅有一个直接前驱和直接后继。 线性表的抽象数据类型: ADT List Data /*线性表的数据对象集合为{a1,a2,...,an},每个元素的类型均为DataType.其中,除第一个元素a1外,每一个元素有且只有一个直接前 阅读全文