C语言
hey超级巨星
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
考研第二章核心
考研原创 2022-08-29 17:07:43 · 163 阅读 · 1 评论 -
求最晚和最早日期
求最晚和最早日期作者:XXX 时间限制: 1S 章节: 循环问题描述 :输入N个日期,每个以年、月、日的顺序读入,打印输出最晚的日期、最早的日期。输入说明 :你的程序需要从标准输入设备(通常为键盘)中读入多组测试数据。每组输入数据由多行组成。每组测试数据的第一行输入一个整数N(0<N<20),表示有N个日期。其后N行每行有三个整数Y(1≤Y≤2015),M(1≤M≤12),D(1≤D≤31)表示一个日期。输出说明 :对每组测试数据,你的程序需要向标准输出设备(通常为启动该程序的文本原创 2021-01-20 15:17:31 · 265 阅读 · 0 评论 -
二叉排序树基础代码与练习题
#include<stdio.h>#include<iostream>#include<stdlib.h>using namespace std;//数据结构typedef struct BSTnode{ int data; struct BSTnode* lchild; struct BSTnode* rchild;}*BSTree;//非递归查找BSTree BST_search(BSTree T,int key){ BSTree p =原创 2020-10-17 16:53:14 · 814 阅读 · 0 评论 -
王道1-2章重点算法题
#include<stdio.h>#include<stdlib.h>#include<iostream>using namespace std;#define MAXSIZE 20//顺序表typedef struct{ int data[MAXSIZE]; int length;}Sqlist;//链表typedef struct Lnode{ int data; struct Lnode* next;}*LinkList, Lnode原创 2020-09-29 19:15:48 · 437 阅读 · 0 评论 -
考研c语言顺序表和链表的所有基本函数(增删改查取值求长遍历)
#include<stdio.h>#include<stdlib.h>#include<iostream>using namespace std;#define MAXSIZE 40//顺序表typedef struct{ int data[MAXSIZE]; int length;}Sqlist;//链表typedef struct Lnode{ int data; struct Lnode* next;}*LinkList,Lnode;原创 2020-09-16 11:50:30 · 206 阅读 · 0 评论 -
数据结构栈的加减乘除计算式处理
/*栈的加减乘除有关算法@hey_超级巨星*/#include <stdio.h>#include<stdlib.h>#define MAXSIZE 50typedef struct{ char data[MAXSIZE]; int top;}*Stack;void InitStack(Stack &S){ S->top = -1;...原创 2020-04-19 16:16:12 · 987 阅读 · 0 评论 -
图的所有数据结构函数
@hey_超级巨星图的所有数据结构```cpp#include<stdio.h>#include<stdlib.h>#include<math.h>typedef int Elemtype;#define ok 1#define ERROR 0#define MAXSIZE 10typedef struct GraphNode{ Elem...原创 2020-03-23 12:05:13 · 329 阅读 · 0 评论 -
数据结构二叉排序树(带有链队列的层次遍历)的软件实现
/*二叉排序树(带有链队列的层次遍历)@hey超级巨星*/#include<stdio.h>#include<stdlib.h>#include <iostream>using namespace std;#define ERROR 0#define OK 1typedef int Elemtype;typedef int Status;...原创 2020-02-28 15:49:57 · 223 阅读 · 0 评论 -
数据结构二叉树的链式存储先中后序遍历的代码软件实现
/*@hey超级巨星*/#include<stdio.h>#include<stdlib.h>#include<iostream>using namespace std;#define ERROR 0#define OK 1typedef int Elemtype;typedef int Status;//二叉树的链式存储typedef ...原创 2020-02-17 15:11:08 · 321 阅读 · 0 评论 -
C语言数据结构栈的顺序存储与链式存储的基本函数
/*栈的顺序存储和链栈//@hey超级巨星*/#include<stdio.h>#include<stdlib.h>typedef int Elemtype;typedef int Status;#define OK 1;#define ERROR 0;#define STACK_SIZE 10#define STACKINCREASE 10type...原创 2020-02-09 15:52:23 · 238 阅读 · 0 评论 -
C语言C++链队列数据结构的软件实现代码
/*链队列@hey超级巨星*/#include <stdio.h>#include<stdlib.h>#include <iostream>using namespace std;#define ERROR 0#define OK 1#define True 1#define False 0#define MAXSIZE 20typed...原创 2020-02-09 13:49:34 · 196 阅读 · 0 评论 -
C语言C++顺序数组循环队列的软件实现代码
/*顺序循环队列*/#include <stdio.h>#include<stdlib.h>#include <iostream>using namespace std;#define ERROR 0#define OK 1#define True 1#define False 0#define MAXSIZE 20typedef int...原创 2020-02-09 12:29:04 · 249 阅读 · 0 评论
分享