首页 开发技术 C++     /    约瑟夫环成绩循环队列实现C++源码

约瑟夫环成绩循环队列实现C++源码

上传者: crystalever | 上传时间:2023/2/15 18:54:28 | 文件大小:236KB | 文件类型:rar
约瑟夫环成绩循环队列实现C++源码
编号为1,2,3,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。
一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止。
报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一人开始重新从1报数,如此下去,直到所有人全部出列为止。
编程打印出列顺序。

文件下载

资源详情

[{"title":"(22个子文件236KB)约瑟夫环问题循环队列实现C++源码","children":[{"title":"YsfCircle","children":[{"title":"YsfCircle.plg <span style='color:#111;'>900B</span>","children":null,"spread":false},{"title":"LikeKing.ncb <span style='color:#111;'>49.00KB</span>","children":null,"spread":false},{"title":"LikeKing.dsw <span style='color:#111;'>541B</span>","children":null,"spread":false},{"title":"YsfCircle.ncb <span style='color:#111;'>33.00KB</span>","children":null,"spread":false},{"title":"YsfCircle.opt <span style='color:#111;'>47.50KB</span>","children":null,"spread":false},{"title":"LikeKing.cpp <span style='color:#111;'>1.29KB</span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"MonkeyKing.obj <span style='color:#111;'>3.51KB</span>","children":null,"spread":false},{"title":"vc60.pdb <span style='color:#111;'>52.00KB</span>","children":null,"spread":false},{"title":"YsfCircle.pdb <span style='color:#111;'>329.00KB</span>","children":null,"spread":false},{"title":"Queen.obj <span style='color:#111;'>5.08KB</span>","children":null,"spread":false},{"title":"LikeKing.obj <span style='color:#111;'>4.69KB</span>","children":null,"spread":false},{"title":"YsfCircle.pch <span style='color:#111;'>198.95KB</span>","children":null,"spread":false},{"title":"LikeKing.pch <span style='color:#111;'>198.95KB</span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'>41.00KB</span>","children":null,"spread":false},{"title":"YsfCircle.exe <span style='color:#111;'>160.06KB</span>","children":null,"spread":false},{"title":"YsfCircle.ilk <span style='color:#111;'>167.04KB</span>","children":null,"spread":false},{"title":"LikeKing.pdb <span style='color:#111;'>417.00KB</span>","children":null,"spread":false}],"spread":false},{"title":"LikeKing.opt <span style='color:#111;'>47.50KB</span>","children":null,"spread":false},{"title":"YsfCircle.dsw <span style='color:#111;'>543B</span>","children":null,"spread":false},{"title":"LikeKing.dsp <span style='color:#111;'>3.42KB</span>","children":null,"spread":false},{"title":"LikeKing.plg <span style='color:#111;'>956B</span>","children":null,"spread":false},{"title":"YsfCircle.dsp <span style='color:#111;'>4.22KB</span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • kiame:
    很不错的一个代码,十分完整简明2014-04-19
  • traineefly:
    不错,对我有帮助2014-02-28
  • 入骨相思:
    不错,在c++下能运行2014-01-05
  • maple19940125:
    代码很好,可以运行,解决了我的问题,很有帮助,对初学者来说很值得借鉴2013-06-19
  • yueer0403:
    不错的资源终于知道怎么实现了!2013-05-30

免责申明

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