![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
文章平均质量分 72
玛格丽特菊
这个作者很懒,什么都没留下…
展开
-
hdu 1161 Eddy's mistakes
Eddy's mistakesTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6152 Accepted Submission(s): 3491Problem DescriptionEddy usually w原创 2013-08-22 14:24:45 · 685 阅读 · 0 评论 -
线性链表合并
还是出错。。。 #include #include #define OK 1 #define ERROR 0 #define TRUE 1 #define OVERFLOW -2 typedef int Status; typedef struct LNode{ int data; struct LNode原创 2013-11-27 17:51:25 · 733 阅读 · 0 评论 -
二叉树字符型遍历
输入时不能带有空格,不知道为什么。。#include#include#include#define OK 1#define OVERFLOW -2typedef int Status;typedef struct BiTNode{ char data;// 结点的值 struct BiTNode *lchild,*rchild;// 左右孩子指针}原创 2013-11-12 19:38:13 · 688 阅读 · 0 评论 -
如何建立二叉树
http://zhidao.baidu.com/link?url=TTleAJ9OTfXoCnPDS9GdJaIlY2kXsZWhJm02QHq8knrm6NwRhzIdR_GBWSHA0QGAqsBFlKtgb9PoAC2CGb4b8K转载 2013-11-11 17:43:46 · 683 阅读 · 0 评论 -
走迷宫伪代码
typedef struct{ int m,n; char arr[RANGE][RANGE];}MazeType;Status Pass(MazeType maze,PostType curpos){ if(maze.arr[curpos.r][curpos.c]==' ') return TRUE; else return FALSE;}原创 2013-10-16 16:49:37 · 1686 阅读 · 0 评论 -
线性表
#include#include#define OK 1#define ERROR 0#define TRUE 1#define FLASE 0#define OVERFLOW -2typedef int Status;typedef int *Triplet;Status InitTrilplet(Triplet &T,int原创 2013-09-27 21:11:36 · 710 阅读 · 0 评论 -
链表排序
#include#include #define OK 1#define ERROR -1#define OVERFLOW -2typedef int Status;typedef struct LNode{ int data; struct LNode *next;}LNode,*LinkLi原创 2013-10-09 17:59:32 · 494 阅读 · 0 评论 -
建立线性表
#include #include #define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define OVERFLOW -2typedef int Status;#define LIST_INIT_SIZE 100typedef int ElemType;typedef struc原创 2013-10-09 00:21:04 · 1179 阅读 · 0 评论 -
复数输出
这是课堂练习#include#include "df.h"//文件命名为英文,不是汉字,不带符号typedef struct { float x; float y;}complex;Status initcomplex (complex &z,float r,float i){ z.x=r; z.y=i; return原创 2013-09-11 17:51:26 · 931 阅读 · 0 评论 -
线性表合并
#include #include#define OK 1#define ERROR 0#define TRUE 1#define OVERFLOW -2typedef int Status;#define LIST_INIT_SIZE 100#define LISTINCREMENT 10typed原创 2013-11-20 17:56:55 · 814 阅读 · 0 评论