大整数加减乘除指数运算课程设计数据结构(源代码+实验报告,期末成绩优秀)

上传者: 43314482 | 上传时间: 2019-12-21 21:48:01 | 文件大小: 25.88MB | 文件类型: rar
密码学分为两类密码:对称密码和非对称密码。对称密码主要用于数据的加/解密,而非对称密码则主要用于认证、数字签名等场合。非对称密码在加密和解密时,是把加密的数据当作一个大的正整数来处理,这样就涉及到大整数的加、减、乘、除和指数运算等,同时,还需要对大整数进行输出。请采用相应的数据结构实现大整数的加、减、乘、除和指数运算,以及大整数的输入和输出。 【基本要求】 1.要求采用链表来实现大整数的存储和运算,不允许使用标准模板类的链表类(list)和函数。 同时要求可以从键盘输入大整数,也可以文件输入大整数,大整数可以输出至显示器,也可以输出至文件。大整数的存储、运算和显示,可以同时支持二进制和十进制,但至少要支持十进制。大整数输出显示时,必须能清楚地表达出整数的位数。测试时,各种情况都需要测试,并附上测试截图;要求测试例子要比较详尽,各种极限情况也要考虑到,测试的输出信息要详细易懂,表明各个功能的执行正确。 2.要求大整数的长度可以不受限制,即大整数的十进制位数不受限制,可以为十几位的整数,也可以为500多位的整数,甚至更长;大整数的运算和显示时,只需要考虑正的大整数。如果可能的话,请以秒为单位显示每次大整数运算的时间。 3.要求采用类的设计思路,不允许出现类以外的函数定义,但允许友元函数。主函数中只能出现类的成员函数的调用,不允许出现对其它函数的调用。 4.要求采用多文件方式:.h文件存储类的声明,.cpp文件存储类的实现,主函数main存储在另外一个单独的cpp文件中。如果采用类模板,则类的声明和实现都放在.h文件中。 5.不强制要求采用类模板,也不要求采用可视化窗口;要求源程序中有相应注释。 6.要求采用Visual C++ 6.0及以上版本进行调试。

文件下载

资源详情

[{"title":"( 42 个子文件 25.88MB ) 大整数加减乘除指数运算课程设计数据结构(源代码+实验报告,期末成绩优秀)","children":[{"title":"大整数课程设计","children":[{"title":"BigInt","children":[{"title":"Debug","children":[{"title":"BigInt.ilk <span style='color:#111;'> 784.42KB </span>","children":null,"spread":false},{"title":"BigInt.pdb <span style='color:#111;'> 724.00KB </span>","children":null,"spread":false},{"title":"BigInt.exe <span style='color:#111;'> 142.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"BigInt","children":[{"title":"Time.cpp <span style='color:#111;'> 335B </span>","children":null,"spread":false},{"title":"output2.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"input10.txt <span style='color:#111;'> 44B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"Time.obj <span style='color:#111;'> 6.76KB </span>","children":null,"spread":false},{"title":"BigInt.log <span style='color:#111;'> 152B </span>","children":null,"spread":false},{"title":"vc141.pdb <span style='color:#111;'> 484.00KB </span>","children":null,"spread":false},{"title":"BigInt.tlog","children":[{"title":"CL.read.1.tlog <span style='color:#111;'> 48.59KB </span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'> 3.69KB </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 558B </span>","children":null,"spread":false},{"title":"CL.write.1.tlog <span style='color:#111;'> 2.05KB </span>","children":null,"spread":false},{"title":"BigInt.lastbuildstate <span style='color:#111;'> 205B </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"CL.command.1.tlog <span style='color:#111;'> 2.28KB </span>","children":null,"spread":false}],"spread":true},{"title":"vc141.idb <span style='color:#111;'> 267.00KB </span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'> 323.19KB </span>","children":null,"spread":false},{"title":"BigInt.obj <span style='color:#111;'> 90.44KB </span>","children":null,"spread":false},{"title":"BigIntLink.obj <span style='color:#111;'> 288.41KB </span>","children":null,"spread":false}],"spread":true},{"title":"BigInt.cpp <span style='color:#111;'> 10.36KB </span>","children":null,"spread":false},{"title":"BigInt.vcxproj.filters <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false},{"title":"BigInt.vcxproj.user <span style='color:#111;'> 165B </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 5.29KB </span>","children":null,"spread":false},{"title":"input2.txt <span style='color:#111;'> 29B </span>","children":null,"spread":false},{"title":"BigInt.h <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"BigIntLink.h <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"output10.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"BigIntLink.cpp <span style='color:#111;'> 3.71KB </span>","children":null,"spread":false},{"title":"Time.h <span style='color:#111;'> 144B </span>","children":null,"spread":false},{"title":"BigInt.vcxproj <span style='color:#111;'> 6.07KB </span>","children":null,"spread":false}],"spread":false},{"title":".vs","children":[{"title":"BigInt","children":[{"title":"v15","children":[{"title":"ipch","children":[{"title":"AutoPCH","children":[{"title":"ad2ebe6fefae6f67","children":[{"title":"BIGINTLINK.ipch <span style='color:#111;'> 29.19MB </span>","children":null,"spread":false}],"spread":true},{"title":"90dcc0d92820a834","children":[{"title":"BIGINT.ipch <span style='color:#111;'> 32.69MB </span>","children":null,"spread":false}],"spread":true},{"title":"6101e1484cdf284d","children":[{"title":"TIME.ipch <span style='color:#111;'> 1.50MB </span>","children":null,"spread":false}],"spread":true},{"title":"867879e72a0d4a7e","children":[{"title":"TIME.ipch <span style='color:#111;'> 1.50MB </span>","children":null,"spread":false}],"spread":true},{"title":"9036490f23f16598","children":[{"title":"MAIN.ipch <span style='color:#111;'> 31.06MB </span>","children":null,"spread":false}],"spread":true},{"title":"6b6a8d973de1bde4","children":[{"title":"BIGINTLINK.ipch <span style='color:#111;'> 30.25MB </span>","children":null,"spread":false}],"spread":true},{"title":"ac353bdf43fc86b7","children":[{"title":"BIGINT.ipch <span style='color:#111;'> 29.19MB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":".suo <span style='color:#111;'> 50.00KB </span>","children":null,"spread":false},{"title":"Browse.VC.db <span style='color:#111;'> 5.71MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"BigInt.sln <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false}],"spread":true},{"title":"数据结构课程设计.doc <span style='color:#111;'> 1.32MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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