- 博客(4)
- 收藏
- 关注
原创 王道C语言督学营(数据结构) 第八部分
8.2 插入排序 #include <stdio.h> #include <stdlib.h> #include <time.h> #include<string.h> typedef int ElemType; typedef struct { ElemType* elem;//整型指针 int TableLen; }SSTable; void ST_Init(SSTable& ST, int len) { ST.TableLen = l
2022-02-26 15:56:40 1179
原创 王道C语言督学营(数据结构) 第四部分
7.2 顺序查找与折半查找 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <time.h> typedef int ElemType; typedef struct { ElemType* elem;//整型指针 int TableLen;//存储动态数组里边的元素个数 }SSTable; int Search_Seq(SSTable ST, Ele
2022-02-17 20:47:39 738
原创 王道C语言督学营(数据结构) 第二部分
3.1 栈 #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> typedef int ElemType; typedef struct DNode { ElemType data; struct DNode *prior,* next;//前驱 后继 }DNode, * DLinkList; //双向链表头插法 DLinkList Dlist_head_insert(DLinkList&a
2022-02-14 22:21:10 864 2
原创 王道C语言督学营(数据结构) 第一部分
2.2 顺序表的增删改查 #include<stdio.h> #include<stdlib.h> #define MaxSize 50 typedef int ElemType; typedef struct { ElemType data[MaxSize]; int len; }Sqlist; int LocateElem(Sqlist L, ElemType e) { int i; for (i = 0; i < L.len; i++) if (L.da
2022-02-14 22:15:02 1351 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人