Description: Josephus: Josephus rules of the game that, in the game, we need to enter the value of n is the total number began to select the upper limit of m and each held by the hands of the password value cipher. These numbers should be a positive integer and n is less than or equal to 30, if the input is less than or equal to 0, should remind entered incorrectly. Scanf () function input operation, space, Enter or Tab key bit input end marker. In the program run in accordance with the input data, output in order column No. num, with the printf () function to achieve. Program execution commands include: ① tectonic structure (2) linked list dynamic memory application (3) one by one into the linked list of nodes and storage node (4) the formation of a circular list the ⑤ delete nodes and output data. Test data initial value of 20 m, n = 7,7 Password: 3,1,7,2,4,8,4 out of the line numbering sequence is: 6,1,4,7,2,3 , 5.
To Search:
File list (Check if you may need any files):
Joseph
......\Debug
......\.....\Joseph.exe
......\Joseph.cpp
......\Joseph.dsp
......\Joseph.dsw
......\Joseph.ncb
......\Joseph.opt
......\Joseph.plg