1) 随机产生四个1-13的数,分别代表13张牌。 2) 提示玩家输入算式。 3) 判断玩家输入的表达式是否合法,其中算式中的四个数字只能是程序所给的四个数字,非法则回到1)。 4) 如果玩家认为这四张牌算不出24点(如:1,1,1,1),可只输入?,程序将判断这四张牌是否能得出24点,如果能,则程序将给出算式,如果不能,说明不能,并回到1)。 5) 当用户正确输入算式后,用“堆栈来求表达式的值”的原理 求出结果并判断是否为24,得出用户是输是赢的结果。 6) 询问用户是否继续,是则回到1),否则结束程序。
上传时间: 2014-01-18
上传用户:er1219
play cards to devepe a paly cards
上传时间: 2014-01-21
上传用户:comua
This is a verilog code used oversampled clock to implement SPI slave. Also include C code for a ARM processor as the SPI master
标签: code oversampled implement include
上传时间: 2013-12-13
上传用户:leixinzhuo
Datagram demo that demonstrates how a dtagram connection works in java 2me on mobile phones.
标签: demonstrates connection Datagram dtagram
上传时间: 2017-09-01
上传用户:王楚楚
This is a very good book that tells us about gabor tranform and gabor filters
标签: gabor tranform filters about
上传时间: 2014-01-05
上传用户:xaijhqx
ICETEK-VC5509-A 实验3.3 定时器实验
上传时间: 2013-12-14
上传用户:1051290259
ICKTEK-VC5509-A 实验3.8 异步串行通信实验
上传时间: 2013-12-17
上传用户:蠢蠢66
ICETEK-VC5509-A评估板及教学实验箱实验指导书VE3
上传时间: 2014-01-09
上传用户:ukuk
A simple method for calculating LawsTexture of an image
标签: calculating LawsTexture simple method
上传时间: 2014-12-05
上传用户:jing911003
Binary Search Tree Implementation with extra features like Maximum Depth of a tree, Minimum element in the BST and Mirroring of BST.
标签: Implementation features Maximum Minimum
上传时间: 2017-09-03
上传用户:秦莞尔w