文件名称:joseph
-
所属分类:
- 标签属性:
- 上传时间:2014-04-17
-
文件大小:1.83mb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
首先,认识并了解著名的约瑟夫问题:已知n个人(n>=1)围坐一圆桌周围,从1号开始顺序编号。从序号为1号的人开始报数,顺时针数到m的那个人出列:他的下一个人又从1开始报数,数到m的那个人又出列;依此规则一直重复下去,直到所有人全部出列,要求:求出最后一个出列人的编号。
本程序运用VC++ 6.0开发工具,利用MFC框架构造一个基于对话框的应用程序,用户根据对话框的界面提示,了解约瑟夫问题,并且在对话框上键入总人数(n) 和出列数(m) 。由编辑框输出结果,结果显示为最后一个出列人的编号。-First, awareness and understanding of the famous Joseph question: Given n individuals (n> = 1) were sitting around a round table, from the 1st to start the sequence number. No. 1 from the number of people start off, count to m clockwise out of that person: He' s the next person and from one to start off, count to m that another person out rule has been repeated so go until all the columns required: find out who' s the last one out of numbers. The program uses VC++ 6.0 development tools to construct a framework for the use of MFC dialog-based application, a user interface based on the dialog box prompts, understanding the problem of Joseph, and type the total number (n) and the number (m) listed in the dialog box . The output from the edit box, the result is displayed as the last person out of the column number.
本程序运用VC++ 6.0开发工具,利用MFC框架构造一个基于对话框的应用程序,用户根据对话框的界面提示,了解约瑟夫问题,并且在对话框上键入总人数(n) 和出列数(m) 。由编辑框输出结果,结果显示为最后一个出列人的编号。-First, awareness and understanding of the famous Joseph question: Given n individuals (n> = 1) were sitting around a round table, from the 1st to start the sequence number. No. 1 from the number of people start off, count to m clockwise out of that person: He' s the next person and from one to start off, count to m that another person out rule has been repeated so go until all the columns required: find out who' s the last one out of numbers. The program uses VC++ 6.0 development tools to construct a framework for the use of MFC dialog-based application, a user interface based on the dialog box prompts, understanding the problem of Joseph, and type the total number (n) and the number (m) listed in the dialog box . The output from the edit box, the result is displayed as the last person out of the column number.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
joseph/Debug/joseph.exe
joseph/Debug/joseph.ilk
joseph/Debug/joseph.obj
joseph/Debug/joseph.pch
joseph/Debug/joseph.pdb
joseph/Debug/joseph.res
joseph/Debug/josephDlg.obj
joseph/Debug/StdAfx.obj
joseph/Debug/vc60.idb
joseph/Debug/vc60.pdb
joseph/joseph.aps
joseph/joseph.clw
joseph/joseph.cpp
joseph/joseph.dsp
joseph/joseph.dsw
joseph/joseph.h
joseph/joseph.ncb
joseph/joseph.opt
joseph/joseph.plg
joseph/joseph.rc
joseph/josephDlg.cpp
joseph/josephDlg.h
joseph/josephring.h
joseph/ReadMe.txt
joseph/res/joseph.ico
joseph/res/joseph.rc2
joseph/resource.h
joseph/StdAfx.cpp
joseph/StdAfx.h
joseph/Debug
joseph/res
joseph
joseph/Debug/joseph.ilk
joseph/Debug/joseph.obj
joseph/Debug/joseph.pch
joseph/Debug/joseph.pdb
joseph/Debug/joseph.res
joseph/Debug/josephDlg.obj
joseph/Debug/StdAfx.obj
joseph/Debug/vc60.idb
joseph/Debug/vc60.pdb
joseph/joseph.aps
joseph/joseph.clw
joseph/joseph.cpp
joseph/joseph.dsp
joseph/joseph.dsw
joseph/joseph.h
joseph/joseph.ncb
joseph/joseph.opt
joseph/joseph.plg
joseph/joseph.rc
joseph/josephDlg.cpp
joseph/josephDlg.h
joseph/josephring.h
joseph/ReadMe.txt
joseph/res/joseph.ico
joseph/res/joseph.rc2
joseph/resource.h
joseph/StdAfx.cpp
joseph/StdAfx.h
joseph/Debug
joseph/res
joseph
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.