2013年8月10日
摘要: #include#include#define LIST_INIT_SIZE 100//链表的最大长度#define LISTINREMENT 12//链表现有的长度typedef struct sqlist { int *A; int length;//链表当前长度 int listsize;//链表最大长度};//初始化链表int InitList(sqlist &L){ L.length = 0; //长度初始化为0 L.listsize= LIST_INIT_SIZE; L.A=(int*)malloc(LIST_INIT_SIZE*sizeof(int));//给链表分配最大 阅读全文
posted @ 2013-08-10 20:18 gac 阅读(251) 评论(0) 推荐(0) 编辑