演示程序,数字应该是任意的,我们必须先输入…
代码说明:
本演示程序中,人数n应为任意的,首先应输入一个值赋给初始报数上限m,程序应能自动保存出列人的序号和将出列的人所持的密码赋给m,再次作为报数上限,如此循环,直至所有人都出列为止。-The demonstration program, the number n should be arbitrary, we must first enter a value assigned to the initial reported that the maximum number of m, the procedure should be able to automatically save a list of the serial number of people and held out the password assigned to m, again reported as the maximum number of such cycles, until all that far out.
下载说明:请别用迅雷下载,失败请重下,重下不扣分!