24

所属分类:游戏
开发工具:C/C++
文件大小:66KB
下载次数:13
上传日期:2013-01-27 00:59:03
上 传 者hechsh11
说明:  24点游戏: 基本要求及步骤: 1) 随机产生四个1-13的数,分别代表13张牌。 2) 提示玩家输入算式。 3) 判断玩家输入的表达式是否合法,其中算式中的四个数字只能是程序所给的四个数字,非法则回到1)。 4) 如果玩家认为这四张牌算不出24点(如:1,1,1,1),可只输入?,程序将判断这四张牌是否能得出24点,如果能,则程序将给出算式,如果不能,说明不能,并回到1)。 5) 当用户正确输入算式后,用“堆栈来求表达式的值”的原理 求出结果并判断是否为24,得出用户是输是赢的结果。 6) 询问用户是否继续,是则回到1),否则结束程序。
(24-point game: the basic requirements and steps: 1) random number four 1-13, respectively, on behalf of the 13 licenses. 2) prompts the player to enter formula. 3) to determine whether the players enter the expression legitimate four numbers in the formula can only program to four digits, illegally back to 1). 4) If the players four cards can not figure the 24 points (such as: 1,1,1,1), can only enter? , The program will be to determine whether these four cards can come up with 24 points, and if they can, then the program will be given in the formula, if not description can not, and back to 1). 5) When users correctly enter the formula, to evaluate the expression " stack" principle obtained results and determine whether the 24, come to the user to lose to win. 6) asks the user whether to continue, then back to 1), otherwise the end of the program.)

文件列表:
24 (0, 2013-01-27)
24\最后程序代码 (0, 2006-06-18)
24\最后程序代码\24allfinished_none2.dat (26643, 2004-05-05)
24\测试源程序代码 (0, 2006-06-18)
24\测试源程序代码\24.c (0, 2004-04-22)
24\测试源程序代码\24allfinished_none.c (25540, 2004-05-04)
24\测试源程序代码\24finished.c (27181, 2004-04-26)
24\测试源程序代码\24NEW.C (4936, 2004-04-15)
24\测试源程序代码\24NEW1.C (4936, 2004-04-15)
24\测试源程序代码\check_chang.c (7229, 2004-04-24)
24\测试源程序代码\check_chang2.c (8576, 2004-04-25)
24\测试源程序代码\CHECK_IF.C (7133, 2004-04-26)
24\测试源程序代码\check_if.cpp (0, 2004-04-25)
24\测试源程序代码\check_if_1.c (7312, 2004-04-26)
24\测试源程序代码\check_if_2.c (9558, 2004-04-26)
24\测试源程序代码\check_if_f.c (9531, 2004-04-26)
24\测试源程序代码\CHECK_IF_int.C (20977, 2004-04-26)
24\测试源程序代码\CHECK_IF_int2.C (9576, 2004-04-26)
24\测试源程序代码\CHECK_IF_intall.c (20977, 2004-04-26)
24\测试源程序代码\check_if_not.c (7105, 2004-04-26)
24\测试源程序代码\check_if_not2.c (9447, 2004-04-26)
24\测试源程序代码\check_st.c (1284, 2004-04-22)
24\测试源程序代码\check_stack.c (1344, 2004-04-22)
24\测试源程序代码\check_stack2.c (1349, 2004-04-22)
24\测试源程序代码\gets.c (244, 2004-04-25)

近期下载者

相关文件


收藏者