![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
qq_40916453
这个作者很懒,什么都没留下…
展开
-
数据结构-完整链表&顺序表
#include<iostream.h> #define increment 10 class sqlist{ private: int *elem; int listsize; int length; public: sqlist(int n); ~sqlist(); void sqlistn(int n); void print()...原创 2018-10-07 22:15:42 · 148 阅读 · 0 评论 -
C++--十字链表
#include<iostream.h> #define max 100 typedef struct arcnode{ int tailvex,headvex; arcnode *tlink,*hlink; int info; }arcnode; typedef struct{ char data; arcnode *firstin,*firstout; }box...原创 2018-11-25 16:05:07 · 259 阅读 · 0 评论 -
链表实现多项式乘法
问题描述 用链表实现多项式乘法。 详细设计 #include <stdlib.h> #include<iostream> using namespace std; typedef struct lnode{ int coef; //系数 int exp; // 指数 lnode *next; }lnode; class poly{ ...原创 2019-01-02 21:54:04 · 1181 阅读 · 1 评论 -
用栈完成二叉树的非递归后序遍历
问题描述 用栈完成二叉树的非递归后序遍历 详细设计 #include<iostream> #define initstacksize 100 using namespace std; typedef struct bitnode { char data; bitnode *lchild,*rchild; } bitnode,*bitree; class stack { ...原创 2019-01-02 21:55:39 · 328 阅读 · 0 评论 -
给出一张无向图,求出无向图中各点的最短路径
问题描述 给出一张无向图,求出无向图中各点的最短路径 详细设计 #include<iostream> #include <vector> #include <iomanip> const int N = 20; const int INF = 9999999; using namespace std; class Graph { private: //...原创 2019-01-02 21:57:42 · 3014 阅读 · 0 评论