![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C/C++/C菜鸟
y6df7
GG。。。。
展开
-
C语言循环队列(数组实现)
#include <stdio.h>#include <stdlib.h>typedef struct queue_arr{ int * data; int front; int rear; int count;} que;//初始化队列que * InitQueue(){ que * q = (que *)mal...原创 2018-07-16 20:45:39 · 7407 阅读 · 0 评论 -
单链表学生成绩管理系统(精简版)——菜鸡随便写写
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <windows.h>//定义链表typedef struct Link{ int stu_no; char name[3]; double kc1,kc2,kc3; double ave,sum;...原创 2018-07-12 18:04:34 · 1463 阅读 · 0 评论 -
C语言栈的实现(链表实现)
#include <stdio.h>#include <stdlib.h>//定义节点typedef struct node{ char data; struct node * next;} node;//定义栈(保存栈顶和栈尾指针)typedef struct stack{ node * top;//用了typedef 给 st...原创 2018-07-13 19:35:28 · 2630 阅读 · 0 评论 -
C语言栈的实现(数组实现)
#include <stdio.h>#include <stdlib.h>#define MaxSize 100//定义栈typedef struct stack{ char data[MaxSize];//数组实现栈内元素定位 int top;//作为数组下标 int buttom;} stack;//创建一个空栈stack ...原创 2018-07-13 20:07:21 · 7472 阅读 · 3 评论 -
C语言实现队列(链表实现)
队列 (Queue) :也是运算受限的线性表。是一种先进先出 (First In First Out ,简称 FIFO) 的线性表。只允许在表的一端进行插入,而在另一端进行删除。 队首 (front) :允许进行删除的一端称为队首。 队尾 (rear) :允许进行插入的一端称为队尾。 代码:#include <stdio.h>#include <std...原创 2018-07-13 22:22:40 · 17977 阅读 · 7 评论