随笔分类 - 数据结构
实验代码
摘要:#include "stdio.h" #define OK 1 #define ERROR 0 #define Stacksize 100 typedef int status; typedef int elemtype; //元素为整型 #define SIZE 100 typedef struc
阅读全文
摘要://1、设置程序的环境,将下列环境设置代码补充完整。 #include "stdio.h" #include "string.h" #define OK 1 #define ERROR 0 typedef int status; typedef struct stu{ //添加图书信息结构 char
阅读全文
摘要://1、 根据下列程序环境的设置,补充完整二叉树的二叉链表结点结构体的定义。 #include "stdio.h" #define OK 1 #define ERROR 0 typedef int status; //下面是二叉树相关的定义 #define MAX 20 typedef char T
阅读全文
摘要:#include "stdio.h" #include "stdlib.h" #define MAXSIZE 15 //顺序表最大长度 #define ERROR 0 #define OK 1 typedef struct Seqlist { int data[MAXSIZE]; int lengt
阅读全文
摘要:#include "stdio.h" #define OK 1 #define ERROR 0 typedef int status; typedef int elemtype; //元素为整型 typedef struct Node{ /* 定义单链表结点类型 */ elemtype data;
阅读全文
摘要:#include "stdio.h" #include "string.h" #define OK 1 #define ERROR 0 typedef struct student{ //定义学生结构体 int num; //学号 char name[10]; //姓名 float score; /
阅读全文
摘要:#include "stdio.h"#define OK 1#define ERROR 0#define SIZE 10typedef int status;typedef int elemtype; //元素为整型 typedef struct { //队列的顺序存储结构 elemtype *ba
阅读全文