清空缓冲区

数据结构:顺序表

偶尔善良 提交于 2019-12-26 10:53:08
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> /* * this c file is a implementation of linear list * author: John Woods * date: 2015/5/3 * exclaim: anyone can use the file to any purpose */ #include <stdio.h> #include <stdlib.h> #include <malloc.h> #define INIT_LEN 20 #define INCREMENT_SIZE 10 #define BOOL int /* define boolean type */ #define TRUE 1 #define FALSE 0 /* linear list structure */ typedef struct LinearList { int * LL; int Length; int MaxLength; } * LinearList; /* menu */ void menu(); void insert(LinearList myLL); void delete(LinearList myLL); void prior(LinearList myLL); void next(LinearList