- 博客(14)
- 收藏
- 关注
原创 C实现二叉树
BinaryTree.h#pragma once#include<stdio.h>#include<stdlib.h>#include<assert.h>#include<malloc.h>typedef char BTDataType;typedef struct BinaryTreeNode{ BTDataType _dat...
2019-10-28 09:26:04 101
原创 C实现环形队列
QueueCircle.h#pragma once#include<stdlib.h>#include<malloc.h>#include<assert.h>#include<stdio.h>typedef int QUDataType;typedef struct Queue{ QUDataType capacity; QUD...
2019-10-23 15:31:41 187
原创 C实现堆
HeadList.h#include<stdio.h>#include<stdlib.h>#include<assert.h>#include<malloc.h>typedef struct Head{ int* a; int capa; int size;}Head;void HeadInit(Head* hp, int*...
2019-10-17 21:19:19 97
原创 C实现队列
Queue.h#pragma once#include<stdio.h>#include<stdlib.h>#include<malloc.h>#include<assert.h>typedef int QUDataType;typedef struct QueueNode{ struct QueueNode* _next; Q...
2019-10-17 21:16:38 101
原创 C实现动态栈
Stcak.h#pragma once#include<stdio.h>#include<stdlib.h>#include<malloc.h>#include<assert.h>// 支持动态增长的栈typedef int STDataType;typedef struct Stack{ STDataType* _a; in...
2019-10-17 21:12:10 120
原创 C实现带头双向链表
List.h#pragma once#include<stdio.h>#include<stdlib.h>#include<assert.h>#include<malloc.h>typedef int DateType;//有头双向链表typedef struct ListNode{ DateType date; struct...
2019-10-17 21:07:57 110
原创 C实现单链表
SingleList.h#include<stdlib.h>#include<stdio.h>#include<assert.h>#include<malloc.h>typedef int DateType;typedef struct SingleListNode{ DateType Date; struct SingleLis...
2019-10-17 21:04:38 85
原创 C实现顺序表
SeqList.h#define N 100#include <stdlib.h>#include <stdio.h>#include <assert.h>#include <malloc.h>//#include <vld.h>typedef struct SeqList{ int* arr; size_t siz...
2019-10-17 21:01:12 59
原创 用C语言实现游戏——井字棋
game.h#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<stdlib.h>#include<math.h>#include<ctype.h>#include<string.h>#include<time.h>#define H 3#def...
2019-05-24 23:49:16 728
原创 使用C语言实现自定义难度游戏——扫雷
game.h#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<stdlib.h>#include<time.h>#include<string.h>#include<Windows.h>#define H 9#define L 9#define H2 H+...
2019-05-24 23:46:24 1620
原创 C操作符
算术操作符‘ - ’ ‘ * ’ / %float a =7/2; //3.000000float b =(float)7/2; //3.500000float c =7/(float)2; //3.500000float d =(float)7/2; //3.000000移位操作符‘ >> ’ (相当于除法)in...
2019-05-24 19:46:17 319
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人