链表插入操作 | 您所在的位置:网站首页 › insdata › 链表插入操作 |
数据结构与算法--图的广度优先遍历
邹炳澜: 一直报错 数据结构与算法--图的广度优先遍历邹炳澜: src/step3/ALGraph.cpp: In function ‘void BFSTraverse(ALGraph)’: src/step3/ALGraph.cpp:22:12: error: invalid initialization of reference of type ‘SeqQueue&’ from expression of type ‘SeqQueue*’ InitQueue(Q); //队列的初始化 ^ In file included from src/step3/ALGraph.cpp:8:0: src/step3/ALGraph.h:47:6: note: in passing argument 1 of ‘void InitQueue(SeqQueue&)’ void InitQueue(SeqQueue &q); /*队列初始化*/ ^~~~~~~~~ src/step3/ALGraph.cpp:28:21: error: invalid initialization of reference of type ‘SeqQueue&’ from expression of type ‘SeqQueue*’ EnQueue(Q, i); //将元素x入队 ^ In file included from src/step3/ALGraph.cpp:8:0: src/step3/ALGraph.h:49:6: note: in passing argument 1 of ‘void EnQueue(SeqQueue&, datatype)’ void EnQueue(SeqQueue &q, datatype x); /*入队*/ ^~~~~~~ src/step3/ALGraph.cpp:31:26: error: invalid initialization of reference of type ‘SeqQueue&’ from expression of type ‘SeqQueue*’ DeQueue(Q, &i); //将队头元素出队 数据结构与算法--二叉树创建及遍历Ce605: 是桂电学长吗 数据结构与算法--图的深度优先遍历ctotalk: good. |
CopyRight 2018-2019 实验室设备网 版权所有 |