数据结构
互联网知名搞黄选手
计算机学生慕名而来
展开
-
循环单链表的创建和输出
/* 时间: 2020年10月22日16:44:37 目的:了解循环单链表 功能:熟悉循环单链表的各项操作 */ #include<stdio.h> #include<stdlib.h> typedef struct node{ int val; struct node *next; }SD,*PSD; PSD CreatCirList();//循环单链表的创建函数 void Traverse(PSD);//输出函数 int main() { PSD pL原创 2020-10-24 17:27:40 · 367 阅读 · 0 评论 -
链栈的C语言算法演示
仅供参考 /* 时间: 2020/09/24 15:00 目的:链栈的C语言算法演示 功能:了解压栈,出栈,输出栈,clear等操作 */ #include<stdio.h> #include<stdlib.h> typedef struct node{ int date; struct node *pNext; }NODE,*PNODE; typedef struct stack{ PNODE pTop; PNODE pBottom; }STACK,*PST原创 2020-09-24 17:05:51 · 207 阅读 · 0 评论