C++求先序序列(二叉树中,给出中序和后序,求先序,代码经过编译后,绝对可运行).rar

上传者: Zxl2356 | 上传时间: 2021-07-12 19:05:05 | 文件大小: 17.74MB | 文件类型: RAR
【问题描述】 给出一棵二叉树的中序与后序排列。求出它的先序排列。(约定树结点用不同的大写字母表示,长度<=8)。 【输入格式】 两行,每行一个字符串,分别表示中序和后序排列 【输出格式】 一个字符串,表示所求先序排列 【样例输入】 BADC BDCA 【样例输出】 ABCD 注: 1.代码中有多处异常处理,能出错的问题都已经解决。包含了结果输出到文件。 代码经过多次调试,绝对可以运行,有着丰富的注释 2.用VS2019编写,代码共有105行。

文件下载

资源详情

[{"title":"( 27 个子文件 17.74MB ) C++求先序序列(二叉树中,给出中序和后序,求先序,代码经过编译后,绝对可运行).rar","children":[{"title":"A3-1","children":[{"title":".vs","children":[{"title":"A3-1","children":[{"title":"v16","children":[{"title":"ipch","children":[{"title":"AutoPCH","children":[{"title":"386299ae589206f4","children":[{"title":"A3-1.ipch <span style='color:#111;'> 34.81MB </span>","children":null,"spread":false}],"spread":true},{"title":"579584fb9167f3bc","children":[{"title":"A3-1.ipch <span style='color:#111;'> 35.75MB </span>","children":null,"spread":false}],"spread":true},{"title":"a6e5ffbf3ef5f080","children":[{"title":"A3-1.ipch <span style='color:#111;'> 35.75MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".suo <span style='color:#111;'> 29.00KB </span>","children":null,"spread":false},{"title":"Browse.VC.db <span style='color:#111;'> 6.22MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"Debug","children":[{"title":"A3-1.vcxproj.FileListAbsolute.txt <span style='color:#111;'> 251B </span>","children":null,"spread":false},{"title":"A3-1.exe.recipe <span style='color:#111;'> 310B </span>","children":null,"spread":false},{"title":"vc142.pdb <span style='color:#111;'> 508.00KB </span>","children":null,"spread":false},{"title":"A3-1.log <span style='color:#111;'> 90B </span>","children":null,"spread":false},{"title":"A3-1.pdb <span style='color:#111;'> 1.32MB </span>","children":null,"spread":false},{"title":"A3-1.tlog","children":[{"title":"CL.write.1.tlog <span style='color:#111;'> 934B </span>","children":null,"spread":false},{"title":"A3-1.lastbuildstate <span style='color:#111;'> 184B </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 3.49KB </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 23.04KB </span>","children":null,"spread":false},{"title":"CL.command.1.tlog <span style='color:#111;'> 2.23KB </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 950B </span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'> 4.70KB </span>","children":null,"spread":false}],"spread":true},{"title":"A3-1.ilk <span style='color:#111;'> 754.28KB </span>","children":null,"spread":false},{"title":"vc142.idb <span style='color:#111;'> 387.00KB </span>","children":null,"spread":false},{"title":"A3-1.exe <span style='color:#111;'> 112.00KB </span>","children":null,"spread":false},{"title":"A3-1.obj <span style='color:#111;'> 295.25KB </span>","children":null,"spread":false}],"spread":true},{"title":"A3-1.vcxproj.filters <span style='color:#111;'> 966B </span>","children":null,"spread":false},{"title":"A3-1.sln <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"A3-1.vcxproj.user <span style='color:#111;'> 168B </span>","children":null,"spread":false},{"title":"A3-1.cpp <span style='color:#111;'> 3.57KB </span>","children":null,"spread":false},{"title":"result.txt <span style='color:#111;'> 17B </span>","children":null,"spread":false},{"title":"A3-1.vcxproj <span style='color:#111;'> 7.02KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明