当前位置: 首页 > news >正文

网站建设各个模块的功能中国企业网是国企吗

网站建设各个模块的功能,中国企业网是国企吗,wordpress主题安装怎么更换内容,网站建设云浪科技当一道题的AC变成了找不同的时候#xff0c;一切就开始失去意义。 到底是谁#xff1f;把Search写成Seacrh#xff0c;害我一直找不同。 本实验实现邻接表表示下无向图的广度优先遍历。 程序的输入是图的顶点序列和边序列(顶点序列以*为结束标志#xff0c;边序列以-1,-1…        当一道题的AC变成了找不同的时候一切就开始失去意义。 到底是谁把Search写成Seacrh害我一直找不同。 本实验实现邻接表表示下无向图的广度优先遍历。 程序的输入是图的顶点序列和边序列(顶点序列以*为结束标志边序列以-1,-1为结束标志)。程序的输出为图的邻接表和广度优先遍历序列。例如 程序输入为 a b c d e f * 0,1 0,4 1,4 1,5 2,3 2,5 3,5 -1,-1 程序的输出为 the ALGraph is a 4 1 b 5 4 0 c 5 3 d 5 2 e 1 0 f 3 2 1 the Breadth-First-Seacrh list:aebfdc #include iostream #include vector #include queue using namespace std;struct Node {char data;bool visited;vectorint edges; }; void bfs(vectorNode nodeList, int startIndex) {queueint nodeQueue;nodeQueue.push(startIndex);nodeList[startIndex].visited true;while (!nodeQueue.empty()){int currentIndex nodeQueue.front();nodeQueue.pop();cout nodeList[currentIndex].data;for (int i nodeList[currentIndex].edges.size() - 1; i 0; --i){int nextIndex nodeList[currentIndex].edges[i];if (!nodeList[nextIndex].visited){nodeQueue.push(nextIndex);nodeList[nextIndex].visited true;}}} }int main() {vectorNode nodeList;char ch;int indexA, indexB;while (cin ch ch ! *){Node node{ch, false, {}};nodeList.push_back(node);}while (cin indexA ch indexB !(indexA -1 indexB -1)){nodeList[indexA].edges.push_back(indexB);nodeList[indexB].edges.push_back(indexA);}cout the ALGraph is\n;for (const Node node : nodeList){cout node.data;for (int i node.edges.size() - 1; i 0; --i)cout node.edges[i];cout endl;}cout the Breadth-First-Seacrh list:;for (int i 0; i nodeList.size(); i)if (!nodeList[i].visited)bfs(nodeList, i);cout endl; }
http://www.huolong8.cn/news/236864/

相关文章:

  • 北京做网站源代码的虚拟主机 便宜
  • 网站做第三方登录界面wordpress7牛云插件
  • 郑州 (网站建设品牌商标注册查询官网
  • 免费网站排名优化软件百度竞价排名规则及费用
  • 网站规划说明书龙岩网站开发
  • 建设网站需要从哪方面考虑自媒体平台注册入口
  • 有哪些网站做返利模式新的网站怎么推广
  • 商标设计logo软件襄樊seo排名
  • 建立一个网站的费用wordpress卡慢
  • 网页设计购物网站建设营销推广的作用
  • 域名与网站的区别平台制作专业网站制作
  • 易语言怎么做点击按钮打开网站网站动态和静态的区别
  • 深圳做网站维护的公司采购管理软件
  • 湖北网站建设哪家好郴州网络
  • 交互比较好的网站html 网站 模板中文
  • 手机版网站打开速度慢成都设计网站的公司
  • 简单美食网站模板免费下载wordpress的中文名称
  • 深圳app网站建设哪家好青岛模板建站公司
  • 网站商城制作费用自己做的网站不备案行吗
  • 建设网站合同范本用友财务软件多少钱一年
  • 买了虚拟主机怎么建设网站学校网站建设方案论文
  • 长沙网站建设zh68学网站建设软件开发
  • vs做网站怎么把网页改为自适应大小网站访问跳出率
  • 深圳seo网站推广报价3g 手机网站建设
  • 找人帮你做ppt的网站吗怎么做微信推广和宣传
  • wordpress 整站语言百度云盘登录电脑版
  • 想开个视频网站该怎么做制作网站的软件主要有
  • 网站着陆页怎么做邢台贴吧123
  • 广东营销型网站建设wordpress 数据库备份插件
  • drupal 做的网站室内设计模拟app