CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 游戏 棋牌游戏

文件名称:exercise

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2012-11-16
  • 文件大小:
    1.02kb
  • 已下载:
    0次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

设计一个含有多个菜单项的菜单演示程序,然后再为这些菜单项设计相应的功能。

要求:

(1)程序显示下列菜单选项:

1. 解一元二次方程

2. 石头、剪子、布游戏

3. 退出程序

选择1-3:

(2)用户选择1,则求解一元二次方程Ax² +Bx+C=0的根。用户输入A、B、C的值,输出方程根x1和x2。

(3)用户选择2,则模拟石头、剪子、布游戏。用户可以任选石头、剪子、布中的一种,计算机也随机产生3种物件之一,根据“石头赢剪子,剪子赢布,布赢石头”的规则判定胜负,另外,默认为一局定胜负,如果有可能,实现三局两胜的规则。

-Design a menu with multiple menu items demo program, and then design the corresponding menu items for these functions.

Requirements:

(1) program displays the following menu options:

1. Solving a quadratic equation

2. Rock, paper, scissors game

3. Exit the program

Select 1-3:

(2) the user selects 1, then solving a quadratic equation Ax ² + Bx+ C = 0 root. User input A, B, C values, the output equation roots x1 and x2.

(3) the user selects 2, the simulation of rock, paper, scissors game. Users can choose the stone, paper, scissors in one, the computer randomly generate one of three kinds of objects, according to "win the stone scissors, scissors wins cloth, stone, cloth wins" rule to determine the outcome of the other, the default is a Board will be played, if possible, to achieve best of three games of the rules.


(系统自动生成,下载前可以参看下载内容)

下载文件列表

exercise.cpp

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com