
算法
xiaoduan2016
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
数组表
#include "stdio.h"#include"malloc.h"typedef int ListItem;void ItemShow(ListItem *x,int n){ for (int i=0;i<=n-1;++i) { if(i%5==0) printf("\n"); printf("%8d ",x[i]); }}typedef struct原创 2012-11-13 13:10:12 · 599 阅读 · 0 评论 -
单链表
下面是我建的单链表 没有封装 用时小小点 #include"stdio.h"#include"malloc.h"/******************************************//******************************************/typedef int ListItem;typedef st原创 2012-11-13 16:54:41 · 463 阅读 · 0 评论 -
顺序表
下面是用 数组实现的 顺序表 templatestruct sq_LList {private: int mm; //the max length int nn; //the length T *v; // the arraypublic: sq_LList() { mm = 0; nn = 0; v = NULL; } sq原创 2013-03-10 12:15:41 · 578 阅读 · 0 评论