Description: 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.
To Search:
File list (Check if you may need any files):
joseph\Debug\joseph.exe
......\.....\joseph.ilk
......\.....\joseph.obj
......\.....\joseph.pch
......\.....\joseph.pdb
......\.....\joseph.res
......\.....\josephDlg.obj
......\.....\StdAfx.obj
......\.....\vc60.idb
......\.....\vc60.pdb
......\joseph.aps
......\joseph.clw
......\joseph.cpp
......\joseph.dsp
......\joseph.dsw
......\joseph.h
......\joseph.ncb
......\joseph.opt
......\joseph.plg
......\joseph.rc
......\josephDlg.cpp
......\josephDlg.h
......\josephring.h
......\ReadMe.txt
......\res\joseph.ico
......\...\joseph.rc2
......\resource.h
......\StdAfx.cpp
......\StdAfx.h
......\Debug
......\res
joseph