MFC界面 约瑟夫环

上传者: stellvie | 上传时间: 2019-12-21 21:10:12 | 文件大小: 3.53MB | 文件类型: rar
实现一个游戏:N个玩家围成一个圆圈,玩家序号分别是1~N,顺势针排列;选一个报数值M。从玩家1开始按顺时针方向自1开始顺序报数,报到M时停止报数,报M的人被淘汰出列,然后从他顺时针方向上的下一个人开始重新报数,如此下去,直到圆圈中只剩下一个人,这个幸存者就是游戏的胜利者。输出游戏中玩家出局的顺序(包括游戏胜利者)。 例子:如有6个玩家,报数值为3,则玩家出局顺序为3-6-4-2-5-1 ---------------------------------------------- 仅供参考

文件下载

资源详情

[{"title":"( 36 个子文件 3.53MB ) MFC界面 约瑟夫环","children":[{"title":"JosephGame","children":[{"title":"JosephGame.dsw <span style='color:#111;'> 526B </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 212B </span>","children":null,"spread":false},{"title":"JosephGame.ncb <span style='color:#111;'> 65.00KB </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 918B </span>","children":null,"spread":false},{"title":"JosephGame.opt <span style='color:#111;'> 52.50KB </span>","children":null,"spread":false},{"title":"JosephGame.rc <span style='color:#111;'> 5.49KB </span>","children":null,"spread":false},{"title":"JosephGame.dsp <span style='color:#111;'> 4.25KB </span>","children":null,"spread":false},{"title":"JosephGame.h <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"JosephGame.clw <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"JosephGame.aps <span style='color:#111;'> 20.68KB </span>","children":null,"spread":false},{"title":"Game.cpp <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"vc60.pdb <span style='color:#111;'> 356.00KB </span>","children":null,"spread":false},{"title":"JosephGame.pch <span style='color:#111;'> 6.75MB </span>","children":null,"spread":false},{"title":"JosephGame.res <span style='color:#111;'> 2.70KB </span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'> 209.00KB </span>","children":null,"spread":false},{"title":"JosephGame.sbr <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"JosephGameDlg.sbr <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"JosephGameDlg.obj <span style='color:#111;'> 25.94KB </span>","children":null,"spread":false},{"title":"JosephGame.bsc <span style='color:#111;'> 4.85MB </span>","children":null,"spread":false},{"title":"Game.sbr <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"JosephGame.exe <span style='color:#111;'> 108.07KB </span>","children":null,"spread":false},{"title":"JosephGame.obj <span style='color:#111;'> 13.62KB </span>","children":null,"spread":false},{"title":"StdAfx.obj <span style='color:#111;'> 103.44KB </span>","children":null,"spread":false},{"title":"StdAfx.sbr <span style='color:#111;'> 1.31MB </span>","children":null,"spread":false},{"title":"JosephGame.pdb <span style='color:#111;'> 377.00KB </span>","children":null,"spread":false},{"title":"JosephGame.ilk <span style='color:#111;'> 199.62KB </span>","children":null,"spread":false},{"title":"Game.obj <span style='color:#111;'> 7.42KB </span>","children":null,"spread":false}],"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 3.57KB </span>","children":null,"spread":false},{"title":"JosephGameDlg.h <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"JosephGame.plg <span style='color:#111;'> 944B </span>","children":null,"spread":false},{"title":"Game.h <span style='color:#111;'> 646B </span>","children":null,"spread":false},{"title":"JosephGame.cpp <span style='color:#111;'> 2.07KB </span>","children":null,"spread":false},{"title":"JosephGameDlg.cpp <span style='color:#111;'> 4.32KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"JosephGame.rc2 <span style='color:#111;'> 402B </span>","children":null,"spread":false},{"title":"JosephGame.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

  • er_jian0929 :
    用户界面做的太简单了...
    2017-11-22
  • hejining :
    感謝LZ收集,用起來挺方便.
    2016-08-12
  • qq_26632271 :
    挺好的,就是界面挺简单
    2016-05-03
  • 林湾村龙猫 :
    功能比较简洁的,谢谢分享~
    2015-01-27
  • kiwu014 :
    我想知道界面上最底下的框是哪个
    2014-11-11

免责申明

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