- 博客(7)
- 问答 (1)
- 收藏
- 关注
原创 C++:顺序表完成两个一元多项式加减法
#include <iostream>using namespace std;#define MAXSIZE 101typedef struct { float coef; //系数 int expn; //指数}Polynomial;typedef struct { Polynomial* elem; int length;}SqList;void seletSort(SqList& L) { //选择排序 Polynomial temp; fo.
2022-11-10 00:25:27
2875
原创 C++:用邻接表表示迪杰斯特拉算法
typedef struct ArcNode { char adjvex; ArcNode* nextArc; int weight;}ArcNode,*pArcNode;typedef struct VNode { char date; pArcNode firstArc;}VNode,*pVNode;typedef struct { pVNode vert; int vexnum, arcnum;}ALGraph;void Dijkstra(ALGraph G, i.
2022-04-13 20:39:35
1109
原创 C++:用邻接表表示克鲁斯卡尔算法
typedef struct ArcNode { char adjvex; ArcNode* nextArc; int weight;}ArcNode,*pArcNode;typedef struct VNode { char date; pArcNode firstArc;}VNode,*pVNode;typedef struct { pVNode vert; int vexnum, arcnum;}ALGraph;typedef struct Ed{ char Hea.
2022-04-13 20:34:23
1176
4
原创 C++:用邻接表表示普里姆算法
typedef struct ArcNode { char adjvex; ArcNode* nextArc; int weight;}ArcNode,*pArcNode;typedef struct VNode { char date; pArcNode firstArc;}VNode,*pVNode;typedef struct { pVNode vert; int vexnum, arcnum;}ALGraph;typedef struct cdge { char .
2022-04-13 20:32:15
993
空空如也
我的C++的类份文件编写编译错误,想不通错在哪
2022-04-01
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅