随笔分类 -  数据结构

参见严蔚敏 吴伟民 编著的《数据结构》的c语言版
摘要:冒泡排序 #include <stdio.h> 阅读全文
posted @ 2016-12-19 20:00 小宏~ 阅读(253) 评论(0) 推荐(0)
摘要:#include<stdio.h>#include<stdlib.h>#define LIST_MAX 10#define LIST_ADD 2typedef struct { int *elem; int length; int listsize;}SqList;int InitList(SqLi 阅读全文
posted @ 2016-05-09 19:30 小宏~ 阅读(381) 评论(0) 推荐(0)
摘要:#include<stdio.h>#include<stdlib.h>typedef struct { int *elem; int length; int listsize;}SqList;#define LIST_MAX 10#define LIST_ADD 2int InitList(SqLi 阅读全文
posted @ 2016-05-08 19:28 小宏~ 阅读(872) 评论(0) 推荐(0)
摘要:#include<stdio.h>#include<stdlib.h>int InitTriplet(int **T,int v1,int v2,int v3){ *T=(int*)malloc(3*sizeof(int)); if(!*T) { printf("分配空间失败!\n"); exit( 阅读全文
posted @ 2016-05-07 23:48 小宏~ 阅读(246) 评论(0) 推荐(0)