
数据结构
莼白菜
这个作者很懒,什么都没留下…
展开
-
河南理工大学数据结构上机实验(数列的构建 排序 插入 删除 合并)
实验目的:写出一个程序,可以完成对两个数列的 1、元素删除 2 元素插入 3 数列输出 4 数列合并 5 数列输入等功能 #include<stdio.h> #include<string.h> #include<algorithm> #define MAX 1000 #define MAXM 10 using namespace std; typedef int Status; bool flag; char a[10]; int Lx[MAX],Ly[M原创 2020-08-07 22:57:49 · 352 阅读 · 0 评论 -
河南理工大学数据结构期末上机考试参考代码
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <conio.h> typedef struct { float coe; int exp; }term; typedef struct LNode { term date; struct LNode *next; }*LinkList; /////////////////////////////////////.原创 2020-08-07 22:50:00 · 397 阅读 · 0 评论 -
河南理工大学数据结构期末上机考试参考代码
#define null 0 #include "stdio.h" #include "stdlib.h" #include "math.h" typedef struct {float coef; int expn; }term; typedef int status; typedef struct Lnode { term data; struct Lnode *next;}*Link,*Linklist; int cmp(term a,term b) {if (a.expn==b.expn) .原创 2020-08-07 22:45:48 · 510 阅读 · 0 评论