C语言数据结构与算法
Dh Zh
学习使我快乐
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
单链表复现魔术师发牌表演
#include <corecrt_malloc.h> #include <stdio.h> constexpr auto OK = 1; constexpr auto Error = 0; typedef int Status; typedef int ElemType; //定义双链表结构体 typedef struct Temp { ElemType Sequen...原创 2019-11-15 17:14:37 · 201 阅读 · 0 评论 -
c语言实现约瑟夫环
函数可能处理不够完美,代改善 //初始化循环链表 Status InitLinkedList(CircularLinkedList *&list) { list = (CircularLinkedList*)malloc(sizeof(Temp)); if (!list) { return Error; } list->data = NULL; list->Ne...原创 2019-11-14 23:13:58 · 240 阅读 · 0 评论 -
双向链表的代码实现
#include <corecrt_malloc.h> constexpr auto OK = 1; constexpr auto Error = 0; constexpr auto True = 1; constexpr auto False = 0; typedef int Status; typedef int ElemType; //定义双链表结构体 typedef stru...原创 2019-11-14 15:44:20 · 795 阅读 · 0 评论 -
创建单链表
#include <corecrt_malloc.h> #include <stdio.h> #include <stdlib.h> constexpr auto OK = 1; constexpr auto Error = 0; typedef int ElemType; #ifndef Node typedef struct Node { ElemTy...原创 2019-11-13 17:06:18 · 250 阅读 · 0 评论
分享