文件名称:Guess-the-price
介绍说明--下载内容均来自于网络,请自行研究使用
1、 猜价格游戏
编写C++程序完成以下功能:
(1) 假定有一件商品,程序用随机数指定该商品的价格(1-1000的整数);
(2) 提示用户猜价格,并输入:若用户猜的价格比商品价格高或低,对用户作出相应的提示;
(3) 直到猜对为止,并给出提示。
-1, guess the price game write C++ program to complete the following functions: (1) assuming a commodity program using random numbers to specify the price of the commodity (1-1000 integer) (2) the user is prompted to guess the price, and enter: If the user guess prices than commodity prices, high or low, corresponding prompt the user (3) until guess so far, and hints.
编写C++程序完成以下功能:
(1) 假定有一件商品,程序用随机数指定该商品的价格(1-1000的整数);
(2) 提示用户猜价格,并输入:若用户猜的价格比商品价格高或低,对用户作出相应的提示;
(3) 直到猜对为止,并给出提示。
-1, guess the price game write C++ program to complete the following functions: (1) assuming a commodity program using random numbers to specify the price of the commodity (1-1000 integer) (2) the user is prompted to guess the price, and enter: If the user guess prices than commodity prices, high or low, corresponding prompt the user (3) until guess so far, and hints.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
实验一-猜价格游戏.cpp