随笔分类 -  c

摘要:#include #include #include #define ERROR 0 #define OK 1 #define Size 21 // 指定质数(数组长度) typedef struct{ char name[20]; char address[20]; char num[12]; }mul; typedef struct{ m... 阅读全文
posted @ 2019-09-09 15:10 yin_zhaozhao 阅读(203) 评论(0) 推荐(0)
摘要:课程设计 邻接表 图的遍历实现课程设计:https://files.cnblogs.com/files/Vera-y/图的遍历_课程设计.zip 阅读全文
posted @ 2019-09-09 15:04 yin_zhaozhao 阅读(301) 评论(0) 推荐(0)
摘要:程序主要实现了图的深度遍历和广度遍历。 阅读全文
posted @ 2019-09-09 14:42 yin_zhaozhao 阅读(360) 评论(0) 推荐(0)
摘要:#include<stdio.h> #include<stdlib.h> #define OK 1 #define ERROR 0 #define OVERFLOW -2 #define True 1 // 定义二叉树的节点类型 typedef struct BiTNode{ char data; struct BiTNode *lchild; // 定义节点的左孩子指针,有孩子指针 struct 阅读全文
posted @ 2019-09-09 14:40 yin_zhaozhao 阅读(307) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2018-11-16 20:06 yin_zhaozhao 阅读(1) 评论(0) 推荐(0)
摘要:# 链式存储#include #include #define STACK_INIT_SIZE 100//存储空间初始分配量 #define STACKINCREMENT 10//存储空间分配增量 #define TURE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define OVERFLOW -2 typedef struct ... 阅读全文
posted @ 2018-11-16 20:02 yin_zhaozhao 阅读(251) 评论(0) 推荐(0)
摘要:#include #include #define STACK_INIT_SIZE 100 #define STACKINCREMENT 10 //stackincrement #define OVERFLOW -2 #define OK 1 #define ERROR 0 typedef struct{ int *base; int *top; int stacksi... 阅读全文
posted @ 2018-11-16 19:56 yin_zhaozhao 阅读(226) 评论(0) 推荐(0)
摘要:#include #include #define ERROR 0 #define OK 1 #define OVERFLOW -2 typedef struct Lnode{ int data; struct Lnode *next; }LNode,*LinkList; //初始化一个空指针 int InitList_L(LinkList &L){ L=(LNode... 阅读全文
posted @ 2018-11-16 19:55 yin_zhaozhao 阅读(152) 评论(0) 推荐(0)
摘要:#define OK 1 #define ERROR 0 #define OVERFLOW -2 #define LIST_INIT_SIZE 100 // 线性表存储空间的初始分配量 #define List_Increment 10 //线性表存储空间的分配增量 #include #include #include typedef struct{ int *elem... 阅读全文
posted @ 2018-11-16 19:52 yin_zhaozhao 阅读(233) 评论(0) 推荐(0)