![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
缓行的蜗牛
这个作者很懒,什么都没留下…
展开
-
数据结构-C语言实现顺序表
#include<stdio.h> #include<stdlib.h> #define ERROR 0 #define LIST_INIT_SIZE 100 #define LISTINCREAMENT 10 #define OK 1 #define OVERFLOW -1 #define TURE 1 #define FALSE 0 typedef int Status...原创 2018-11-15 21:16:18 · 2611 阅读 · 0 评论 -
数据结构-C语言实现串
#include "stdlib.h" #include "stdio.h" #define true 1 #define false 0 #define MAXLEN 255 typedef int Status; typedef struct{ char ch[MAXLEN]; int length; }String; //串的赋值 void StrAssign(String *S,cha...原创 2018-11-18 23:27:46 · 3180 阅读 · 0 评论 -
数据结构-C语言实现循环队列
#include<stdio.h> #include<stdlib.h> #define MAXSIZE 100 #define OK 1 #define OVERFLOW -1 typedef struct{ int *base; int front; int rear; }SqQueue; typedef int Status; //初始化 Status Init...原创 2018-11-18 23:26:44 · 581 阅读 · 0 评论 -
数据结构-C语言实现队列
#include<stdio.h> #include<stdlib.h> #define OK 1 #define TRUE 1 #define FALSE 0 #define OVERFLOW 0 typedef int Status; typedef struct Node{ int data; struct Node *next; }Node,*QNode; ty...原创 2018-11-18 23:25:09 · 217 阅读 · 0 评论 -
数据结构-C语言实现循环队列
#include<stdio.h> #include<stdlib.h> #define MAXSIZE 100 #define OK 1 #define OVERFLOW -1 typedef struct{ int *base; int front; int rear; }SqQueue; typedef int Status; //初始化 Status Init...原创 2018-11-15 21:26:05 · 388 阅读 · 0 评论 -
数据结构-C语言实现队列
#include<stdio.h> #include<stdlib.h> #define OK 1 #define TRUE 1 #define FALSE 0 #define OVERFLOW 0 typedef int Status; typedef struct Node{ int data; struct Node *next; }Node,*QNode; ty...原创 2018-11-15 21:24:37 · 508 阅读 · 0 评论 -
数据结构-C语言实现链栈
#include<stdio.h> #include<stdlib.h> #define FALSE 0 #define OK 1 #define TURE 1 typedef int Status; typedef struct SNode{ int data;//数据域 struct SNode *next;//指针域 }SNode,*Node; typedef s...原创 2018-11-15 21:23:00 · 278 阅读 · 0 评论 -
数据结构-C语言实现线性栈
#include<stdio.h> #include<stdlib.h> #define STACK_INIT_SIZE 100//存储空间初始化分配量 #define STACKINCREAMENT 10//存储空间分配增量 #define OK 1 #define OVERFLOW -1 #define FALSE 0 #define TURE 1 #define ER...原创 2018-11-15 21:21:06 · 240 阅读 · 0 评论 -
数据结构-C语言实现链表
#include<stdio.h> #include<stdlib.h> #define OK 1 #define TURE 1 #define FALSE -1 typedef int Status; typedef int Elemtype; typedef struct Node{ Elemtype data; struct Node *next; }Node,*...原创 2018-11-15 21:18:49 · 5030 阅读 · 0 评论 -
数据结构-C语言实现一元二次项
#include<stdio.h> #include<stdlib.h> typedef struct Node{ float coef; //系数 int exp; //指数 struct Node *next; }Node; //根据多项式各项的系数和指数建立链表,返回头指针 Node * Create(int n) { Node *head,*s,...原创 2018-11-18 23:32:26 · 634 阅读 · 0 评论