- 博客(3)
- 收藏
- 关注
原创 清华跨考计算机党学习之路记录-3静态数组实现栈的各种操作
标题 //以静态数组的形式实现栈的各种操作 #include<iostream> #include<stdlib.h> #include<stdio.h> #define stack_size 100 #define stack_add 10 using namespace std; //静态数组定义栈 typedef struct Stack{ int *base; int *top; int stacksize; }Stack; //初始化栈 bool
2021-04-27 21:05:02 94
原创 清华跨考计算机党学习之路记录-2实现带头节点链表的各种操作
清华考研第二弹———用头节点定义的链表实现的各种操作 //用头结点定义的链表 #include<iostream> #include<stdio.h> #include<stdlib.h> using namespace std; //定义链表的结构体 typedef struct Linklist { int data; struct Linklist* next; }Linklist, * Link; //判空链表 bool EmptyList(Linkl
2021-04-26 21:04:28 96
原创 清华跨考计算机党学习之路记录-1静态数组实现线性表的各种操作
在这里插入代码片@TOC 学习之路记录-1静态数组C语言实现线性表的各种操作 *****#include<stdio.h> #include<stdlib.h> #include<malloc.h> #define Maxsize 10 typedef struct { int data[Maxsize]; int length; }List; //初始化 void InitList(List*l){ l->length=0; } //判空 bool Empty(L
2021-04-20 14:53:42 76 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人