![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
文章平均质量分 83
befun
!@@#
展开
-
数据结构之 链表
/**//* main.cpp * 测试链表*/#includestdio.h>#includeiostream.h>#includestring.h>#includestdlib.h>#include"element.h"#include"list.h"void main(int ac,char *av[])...{ List l(sizeof(struct element));原创 2007-10-21 13:22:00 · 656 阅读 · 0 评论 -
数据结构之 顺序表
/* main.cpp * 测试顺序表类List */#includestdio.h>#includeiostream.h>#includestring.h>#includestdlib.h>#include"element.h"#include"list.h"void main(int ac,char *av[])...{ List l(4,sizeof(struct el原创 2007-10-20 19:24:00 · 653 阅读 · 0 评论 -
数据结构之 字符串
#ifndef BEFUN#define oopr(msg,flag) {puts(msg);return flag;}#define oor(msg) {puts(msg);return;}#define oope(msg,flag) {perror(msg);return flag;}#endifclass String...{private: char *str; int l原创 2007-10-24 12:31:00 · 1283 阅读 · 0 评论 -
数据结构之 表达式
#includestdio.h>#includestring.h>#includeiostream.h>#includestdlib.h>#define DT true#define OP false#define BIGGER 1#define EQUAL 0#define SMALLER -1#define oope(msg) {perror(msg);exit(-1)原创 2007-10-24 12:45:00 · 931 阅读 · 0 评论 -
数据结构之 排序
#include#include#include#include#define DATATYPE intclass EasySort{private: DATATYPE *data; int len; char type; //below must define by user,in order to test here put it in private void inline prin原创 2007-10-24 12:40:00 · 479 阅读 · 0 评论