
数据结构
文章平均质量分 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 · 677 阅读 · 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 · 670 阅读 · 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 · 1301 阅读 · 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 · 950 阅读 · 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 · 498 阅读 · 0 评论