数据结构实验2.rar

上传者: 44167847 | 上传时间: 2021-04-29 14:04:35 | 文件大小: 30.76MB | 文件类型: RAR
1.建立一个空栈,并按要求完成: (1)编写入栈函数,随机产生10个100以内的整数,并按输入顺序依次入栈,考虑判断上溢情况; (2)编写出栈函数,从键盘输入出栈元素个数n (n<10),将n个元素出栈并显示出栈元素,考虑判断下溢情况; (3)编写取栈顶元素函数,若栈不为空,则取出栈顶元素显示;否则提示栈空。 2.建立一个空队列,并按要求完成: (1)编写入队函数,随机产生10个100以内的整数,并按输入顺序依次入队,考虑判断队满情况; (2)编写出队函数,从键盘输入出队元素个数n (n<10),将n个元素出队后显示队中数据结果,考虑判断队空情况; (3)编写取队头元素函数,若队不为空,则取队头元素显示;否则提示队空。

文件下载

资源详情

[{"title":"( 55 个子文件 30.76MB ) 数据结构实验2.rar","children":[{"title":"ConsoleApplication2","children":[{"title":"ConsoleApplication2.vcxproj <span style='color:#111;'> 7.12KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"ConsoleApplication2.Build.CppClean.log <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"vc142.idb <span style='color:#111;'> 147.00KB </span>","children":null,"spread":false},{"title":"ConsoleApplication2.log <span style='color:#111;'> 2.16KB </span>","children":null,"spread":false},{"title":"ConsoleApplication2.vcxproj.FileListAbsolute.txt <span style='color:#111;'> 73B </span>","children":null,"spread":false},{"title":"ConsoleApplication2.exe.recipe <span style='color:#111;'> 314B </span>","children":null,"spread":false},{"title":"ConsoleApplication2.ilk <span style='color:#111;'> 497.97KB </span>","children":null,"spread":false},{"title":"ConsoleApplication2.exe <span style='color:#111;'> 57.50KB </span>","children":null,"spread":false},{"title":"ConsoleA.de4b1857.tlog","children":[{"title":"CL.read.1.tlog <span style='color:#111;'> 11.60KB </span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'> 2.37KB </span>","children":null,"spread":false},{"title":"ConsoleApplication2.lastbuildstate <span style='color:#111;'> 173B </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 556B </span>","children":null,"spread":false},{"title":"CL.write.1.tlog <span style='color:#111;'> 488B </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false},{"title":"CL.command.1.tlog <span style='color:#111;'> 776B </span>","children":null,"spread":false}],"spread":true},{"title":"ConsoleApplication2.pdb <span style='color:#111;'> 516.00KB </span>","children":null,"spread":false},{"title":"ConsoleApplication2.obj <span style='color:#111;'> 71.56KB </span>","children":null,"spread":false},{"title":"vc142.pdb <span style='color:#111;'> 404.00KB </span>","children":null,"spread":false}],"spread":false},{"title":".vs","children":[{"title":"ConsoleApplication2","children":[{"title":"v16","children":[{"title":"ipch","children":[{"title":"AutoPCH","children":[{"title":"8ab23f517f8ce1a4","children":null,"spread":false},{"title":"aa5443787f940088","children":[{"title":"CONSOLEAPPLICATION2.ipch <span style='color:#111;'> 34.56MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".suo <span style='color:#111;'> 22.50KB </span>","children":null,"spread":false},{"title":"Browse.VC.db <span style='color:#111;'> 6.09MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"LinkList.h <span style='color:#111;'> 3.37KB </span>","children":null,"spread":false},{"title":"ConsoleApplication2.cpp <span style='color:#111;'> 961B </span>","children":null,"spread":false},{"title":"ConsoleApplication2.sln <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"ConsoleApplication2.vcxproj.filters <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"ConsoleApplication2.vcxproj.user <span style='color:#111;'> 168B </span>","children":null,"spread":false}],"spread":true},{"title":"ConsoleApplication1","children":[{"title":"Debug","children":[{"title":"ConsoleApplication1.exe.recipe <span style='color:#111;'> 314B </span>","children":null,"spread":false},{"title":"vc142.idb <span style='color:#111;'> 155.00KB </span>","children":null,"spread":false},{"title":"ConsoleApplication1.ilk <span style='color:#111;'> 582.36KB </span>","children":null,"spread":false},{"title":"ConsoleApplication1.exe <span style='color:#111;'> 57.50KB </span>","children":null,"spread":false},{"title":"ConsoleApplication1.log <span style='color:#111;'> 136B </span>","children":null,"spread":false},{"title":"ConsoleApplication1.vcxproj.FileListAbsolute.txt <span style='color:#111;'> 73B </span>","children":null,"spread":false},{"title":"ConsoleApplication1.pdb <span style='color:#111;'> 708.00KB </span>","children":null,"spread":false},{"title":"ConsoleApplication1.Build.CppClean.log <span style='color:#111;'> 946B </span>","children":null,"spread":false},{"title":"vc142.pdb <span style='color:#111;'> 428.00KB </span>","children":null,"spread":false},{"title":"ConsoleA.1cc1bebf.tlog","children":[{"title":"CL.read.1.tlog <span style='color:#111;'> 12.01KB </span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'> 2.24KB </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 556B </span>","children":null,"spread":false},{"title":"ConsoleApplication1.lastbuildstate <span style='color:#111;'> 173B </span>","children":null,"spread":false},{"title":"CL.write.1.tlog <span style='color:#111;'> 488B </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false},{"title":"CL.command.1.tlog <span style='color:#111;'> 776B </span>","children":null,"spread":false}],"spread":true},{"title":"ConsoleApplication1.obj <span style='color:#111;'> 68.63KB </span>","children":null,"spread":false}],"spread":false},{"title":"ConsoleApplication1.vcxproj.filters <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":".vs","children":[{"title":"ConsoleApplication1","children":[{"title":"v16","children":[{"title":"ipch","children":[{"title":"AutoPCH","children":[{"title":"67208f6306a8779d","children":[{"title":"STACK.ipch <span style='color:#111;'> 34.44MB </span>","children":null,"spread":false}],"spread":true},{"title":"a3e4319a02671cb7","children":[{"title":"LINKLIST.ipch <span style='color:#111;'> 34.44MB </span>","children":null,"spread":false}],"spread":true},{"title":"ac3c489da6e50b10","children":[{"title":"CONSOLEAPPLICATION1.ipch <span style='color:#111;'> 46.94MB </span>","children":null,"spread":false}],"spread":true},{"title":"ee83ee90587c14ad","children":[{"title":"CONSOLEAPPLICATION2.ipch <span style='color:#111;'> 34.56MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".suo <span style='color:#111;'> 35.00KB </span>","children":null,"spread":false},{"title":"Browse.VC.db <span style='color:#111;'> 7.61MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"ConsoleApplication1.vcxproj <span style='color:#111;'> 7.11KB </span>","children":null,"spread":false},{"title":"ConsoleApplication1.vcxproj.user <span style='color:#111;'> 168B </span>","children":null,"spread":false},{"title":"ConsoleApplication1.cpp <span style='color:#111;'> 2.29KB </span>","children":null,"spread":false},{"title":"stack.h <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"ConsoleApplication1.sln <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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