随笔分类 - 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...
阅读全文
摘要:课程设计 邻接表 图的遍历实现课程设计:https://files.cnblogs.com/files/Vera-y/图的遍历_课程设计.zip
阅读全文
摘要:程序主要实现了图的深度遍历和广度遍历。
阅读全文
摘要:#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
阅读全文
摘要:# 链式存储#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 ...
阅读全文
摘要:#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...
阅读全文
摘要:#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...
阅读全文
摘要:#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...
阅读全文