登录
首页 » Visual C++ » caishuzi

caishuzi

于 2020-07-04 发布 文件大小:5127KB
0 304
下载积分: 1 下载次数: 1

代码说明:

   猜数字:由计算机随机产生一个1~10000以内的数字,用户根据提示猜出该数字,功能要求如下: (1)游戏结束条件:1)在规定时间内正确猜出该数字;2)规定用时耗完。 (2)游戏提示:根据用户的输入与所产生数字的大小关系给出正确提示,例如,随机产生数为5000,若用户输入6000,则提示“高了”,若用户输入4000,则提示“低了”。 (3)游戏结果显示:1)若用户在规定时间内正确猜出数字,则显示“恭喜!正确猜出数字***。”;2)若到达规定时间但并未猜出,则显示“很遗憾,未能在规定时间内猜出正确数字,该数字为***。” ,其中,“***”表示所需猜出的随机数。 (4)游戏时间设置:可由用户灵活设置游戏时间,此部分内容应在游戏开始前完成。 (5)游戏退出设置:在每轮游戏结束之后,给出提示语,请用户选择是否继续游戏。 (Guess the Numbers: randomly generated by computer within a 1 ~ 10000 Numbers, according to the user to guess the Numbers, functional requirements are as follows: (1) the game conditions: 1) correctly guess the number within the given time 2) regulation is run out. (2) game tip: according to the size of the user input and produced digital relationships give prompt, correct, for example, random number is 5000, if the user input, 6000 indicates that high , if the user input, 4000 indicates that the low . (3) the game results showed: 1) if the user within the prescribed time to guess the Numbers correctly, is displayed congratulations! Guess the right number***. 2) but not guess, if arrive time required is displayed it s a pity that failed to guess the right number within the prescribed time, the number is***. , among them, *** needed to guess the random Numbers. (4) : time setting can be set by the user the game time, this part should be completed before the start of the ga)

文件列表:

作业C_1
.......\C_1
.......\...\C_1
.......\...\...\C_1.vcxproj,4022,2015-07-12
.......\...\...\C_1.vcxproj.filters,1151,2015-07-12
.......\...\...\C_1.vcxproj.user,143,2015-07-12
.......\...\...\Debug
.......\...\...\.....\CL.read.1.tlog,77758,2015-07-31
.......\...\...\.....\CL.write.1.tlog,2516,2015-07-31
.......\...\...\.....\C_1.exe.embed.manifest,406,2015-07-12
.......\...\...\.....\C_1.exe.embed.manifest.res,472,2015-07-31
.......\...\...\.....\C_1.exe.intermediate.manifest,381,2015-07-31
.......\...\...\.....\C_1.lastbuildstate,70,2015-07-31
.......\...\...\.....\C_1.log,2389,2015-07-31
.......\...\...\.....\C_1.vcxprojResolveAssemblyReference.cache,713,2015-07-12
.......\...\...\.....\C_1.write.1.tlog,0,2015-07-12
.......\...\...\.....\C_1_manifest.rc,196,2015-07-12
.......\...\...\.....\link-cvtres.read.1.tlog,2,2015-07-31
.......\...\...\.....\link-cvtres.write.1.tlog,2,2015-07-31
.......\...\...\.....\link.46992-cvtres.read.1.tlog,2,2015-07-31
.......\...\...\.....\link.46992-cvtres.write.1.tlog,2,2015-07-31
.......\...\...\.....\link.46992.read.1.tlog,2,2015-07-31
.......\...\...\.....\link.46992.write.1.tlog,2,2015-07-31
.......\...\...\.....\link.read.1.tlog,8776,2015-07-31
.......\...\...\.....\link.write.1.tlog,2252,2015-07-31
.......\...\...\.....\main.obj,46909,2015-07-31
.......\...\...\.....\mt.read.1.tlog,818,2015-07-31
.......\...\...\.....\mt.write.1.tlog,294,2015-07-31
.......\...\...\.....\number.obj,44228,2015-07-31
.......\...\...\.....\rc.read.1.tlog,734,2015-07-31
.......\...\...\.....\rc.write.1.tlog,758,2015-07-31
.......\...\...\.....\vc100.idb,486400,2015-07-31
.......\...\...\.....\vc100.pdb,241664,2015-07-31
.......\...\...\main.cpp,1314,2015-07-13
.......\...\...\number.cpp,402,2015-07-13
.......\...\...\number.h,186,2015-07-13
.......\...\C_1.sdf,5656576,2015-07-31
.......\...\C_1.sln,876,2015-07-12
.......\...\Debug
.......\...\.....\C_1.exe,39936,2015-07-31
.......\...\.....\C_1.ilk,381600,2015-07-31
.......\...\.....\C_1.pdb,642048,2015-07-31
.......\...\ipch
.......\...\....\c_1-89586f57
.......\...\....\............\c_1-a320a2ff.ipch,15335424,2015-07-31
.......\实验报告.doc,25600,2015-07-13

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 20170422
    贪吃蛇游戏是经典手机游戏,既简单又耐玩。通过控制蛇头方向吃蛋,使得蛇变长,从而获得积分。(Snake game is a classic mobile phone game, which is simple and playable. By controlling the direction snakeheads eat eggs, the snake long, so as to obtain the integral.)
    2017-04-22 11:33:00下载
    积分:1
  • fengyun--douzhanshen0917A
    斗战神的开发脚本,具体参数请找一般ec开发工具。都有的。作为一个参考吧。能看懂的自然看得懂(Fighting Ares developing scripts)
    2021-01-17 08:28:49下载
    积分:1
  • feixingqi
    简单的小游戏,飞行棋,用MFC制作的,可以顺利的完成这个游戏.(Simple games, flight chess, made with MFC, you can smoothly complete the game.)
    2021-01-04 09:48:55下载
    积分:1
  • 3d_simple
    directx 3d游戏的简单制作,对于新手是个号例子(directx 3d game simple production example for the novice is No.)
    2020-07-04 23:20:01下载
    积分:1
  • poly
    标题: 多边形游戏 时 限: 1000 ms 内存限制: 10000 K 总时限: 3000 ms 描述: 多边形游戏是一个单人玩的游戏,开始时有一个由n个顶点构成的多边形。每个顶点被赋予一个整数值,每条边被赋予一个运算符“+”或“*”。所有边依次用整数从1到n编号。 游戏第1步,将一条边删除。 随后n-1步按以下方式操作: (1)选择一条边E以及由E连接着的2个顶点V1和V2; (2)用一个新的顶点取代边E以及由E连接着的2个顶点V1和V2。将由顶点V1和V2的整数值通过边E上的运算得到的结果赋予新顶点。 最后,所有边都被删除,游戏结束。游戏的得分就是所剩顶点上的整数值。 输入: 输入共两行,第一行一个整数n表示顶点个数,第二行共2*n个数,分别为数字和字符。 例如:对于上图中的问题,我们可以这样按输入样例中的例子输入,数学中的“+”号代表加法,小写字母“x”代表乘法。 输出: 一个整数,计算最高得分。 输入样例: 5 10 + -1 x -2 x 3 + -8 x 输出样例: 486 (标题: 多边形游戏 时 限: 1000 ms 内存限制: 10000 K 总时限: 3000 ms 描述: 多边形游戏是一个单人玩的游戏,开始时有一个由n个顶点构成的多边形。每个顶点被赋予一个整数值,每条边被赋予一个运算符“+”或“*”。所有边依次用整数从1到n编号。 游戏第1步,将一条边删除。 随后n-1步按以下方式操作: (1)选择一条边E以及由E连接着的2个顶点V1和V2; (2)用一个新的顶点取代边E以及由E连接着的2个顶点V1和V2。将由顶点V1和V2的整数值通过边E上的运算得到的结果赋予新顶点。 最后,所有边都被删除,游戏结束。游戏的得分就是所剩顶点上的整数值。 输入: 输入共两行,第一行一个整数n表示顶点个数,第二行共2*n个数,分别为数字和字符。 例如:对于上图中的问题,我们可以这样按输入样例中的例子输入,数学中的“+”号代表加法,小写字母“x”代表乘法。 输出: 一个整数,计算最高得分。 输入样例: 5 10+-1 x-2 x 3+-8 x 输出样例: 486 )
    2012-12-17 10:35:16下载
    积分:1
  • PushBox
    C语言编写的推箱子游戏,功能实现了,只是界面还有待提高,对初学者还是很有帮助的(Sokoban game written in C language functions achieved, but the interface needs to be improved, very helpful for beginners)
    2014-07-06 12:34:08下载
    积分:1
  • game
    vb.net实现的打砖块小游戏的基本操作和功能(basic operations and functions of vb.net achieve Arkanoid game)
    2013-03-06 11:33:40下载
    积分:1
  • tetris3
    C++控制台俄罗斯方块带源代码,界面美观,Visual C++ 6.0编译。(Cpp Console Tetris)
    2015-07-17 19:35:44下载
    积分:1
  • LLK1.41_FullSources
    连连看.net代码。最新更新的,VS2005开发。(Lianliankan. Net code. The latest update, VS2005 development.)
    2008-04-18 09:28:04下载
    积分:1
  • 45MapMaker
    说明:  一款45度2D游戏地图编辑器和大家一起分享啊!(45 degrees a 2D game map editor and the community together to share ah!)
    2008-09-16 21:02:38下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载