
数据结构
文章平均质量分 91
BruthYU
这个作者很懒,什么都没留下…
展开
-
单链表与6个基本操作
0、宏定义与单链表结构体#include<stdio.h> #include<stdlib.h> #include<iostream> using namespace std; #define error 1 #define OK 0 typedef int ElemType; typedef int Status;typedef struct LNode{ ElemType dat原创 2016-10-08 23:27:27 · 972 阅读 · 0 评论 -
静态链表的基本操作
0、宏定义以及静态链表结点结构体#include<stdio.h> #include<stdlib.h> #include<iostream> using namespace std; #define MAXSIZE 1000 #define OK 0 #define error 1 typedef int Status; typedef int ElemType;//静态链表结构体 typed原创 2016-10-09 19:06:42 · 935 阅读 · 0 评论 -
线性表与13个基本操作的实现
一、宏定义解释 ElemType :线性表数据元素数据类型 LIST_INIT_SIZE : 线性表初始数据元素容量 Status :函数返回值(一般替换int型) error :0 INFEASIBLE :0 OK :0二、线性表结构体typedef struct { ElemType *elem;原创 2016-09-24 00:55:48 · 26382 阅读 · 12 评论