随笔分类 -  数据结构

数据结构是计算机相当重要的核心思想
摘要:#include <stdio.h>#include <stdlib.h>#define list_maxsize 100typedef int ElemType ; struct List{ ElemType data[list_maxsize]; int length;} ;/* 初始化锭表 * 阅读全文
posted @ 2010-01-14 20:27 平凡网客 阅读(516) 评论(0) 推荐(1)
摘要:/*线性表的操作*/#include<stdio.h>#include<stdlib.h>typedef int ElemType;struct List{ ElemType *list; int size; int MaxSize;};/*初始化列表,即动态存储空间分配并置L为一个空列表*/void initList(struct List *L,int ms){ if(... 阅读全文
posted @ 2010-01-12 01:14 平凡网客 阅读(4173) 评论(0) 推荐(0)