c
日久弥新あ
这个作者很懒,什么都没留下…
展开
-
数据结构之队列的基本操作(链式存储和顺序存储)c语言版
#include<stdio.h>#include<stdbool.h>#define MaxSize 50#define ElemType chartypedef struct{ ElemType data[MaxSize]; int front,rear;}SqQueue;//链式结构typedef struct{ El...原创 2020-04-20 16:41:15 · 350 阅读 · 0 评论 -
数据结构之栈的基本操作(c语言版)
//栈的顺序存储#include<stdio.h>#include<stdbool.h>#define MaxSize 50#define ElemType chartypedef struct{ ElemType data[MaxSize]; int top;}SqStack;//栈的初始化void InitStack(SqStac...原创 2020-04-19 10:12:13 · 465 阅读 · 0 评论 -
数据结构之链表的基本操作(c语言版)
在做链表的基本操作的时候遇到的最大的一个困难就是指针了,指针变量、指针、指向指针的指针变量傻傻分不清,结果就是导致程序一直出错,无奈只能进行恶补,好在最后终于成功了。程序的部分采用了王道上的程序。这里就不对具体原理进行解读了。若有侵权,可联系删除。#include<stdio.h>#include<stdlib.h>typedef int ElemType;t...原创 2020-04-09 22:17:21 · 235 阅读 · 0 评论 -
数据结构之顺序表的基本操作(c语言版)
#include<stdio.h>#include<stdbool.h>#define MaxSize 50typedef struct{ char data[MaxSize]; int length;}SqList;//插入bool ListInsert(SqList *L, int i,char e){ if(i < 1 ...原创 2020-03-27 20:47:01 · 392 阅读 · 0 评论