bobing
代码说明:
设计主要分两部分:博饼功能的实现和图形界面的生成。主要设计两个类,一个是Dice,记录骰子值,根据骰子值在指定位置绘制骰子。另一个类是Game,主要实现大致框体的绘制和博饼功能的实现。博饼功能主要用到伪随机函数。主函数用到两个线程,用来处理后台输入和骰子的循环输出。(Design main is divided into two parts: bo bread and the realization of the function of the generation of graphical interface. The main design two classes, one is the Dice, record the Dice value, according to the Dice in the location specified value draw Dice. Another kind is Game, mainly realizes the drawing of body roughly box beau and the realization of the function of bread. Bo bread function mainly use pseudo-random function. The main () function use two thread, used to deal with the background of the dice input and output cycle. )
下载说明:请别用迅雷下载,失败请重下,重下不扣分!