Вывод ответа #1863438434

-

помощь новичкам

TAGIR N70


Репутация: 230
репутация: 230
| на сайте с 2007 года | последнее посещение: вчера в 23:40
сообщений: 2046

Пост № 1863438434

кто знает с++?
 -------------
 добавлено в 23.49: Помогите пожалуйста написать игру(две) на с++,    вот исходники
 
 1. Now we have enough knowledge to develop a simple game in console. Let’s call it “Magic
 number”. The main aim of the game - guess the number algorithm generated. The generated
 number has to be int type. Here is the sample:
 
 


 
 
 2. In the second game your program has to generate two points on the X-axes and ask the user
 to find any integer point that will lie on the line(between points your program generated
 before).
 
 
 
 
/*
     "Magic number" game template.
 */
 
 #include
 #include  // To generate really RANDOM number using time.
 
 using namespace std;
 
 int main () {
 
     srand(time(NULL)); // setting the seed to the time period,    so your number will be really random
     int numberToGuess = rand(); // getting the random number by calling rand() function
 
 
     // The infinite loop
     while ( true) {
        
         // the exit from the look by some condition.
         if () {
             break;
         }
     }
     cout


ответ опубликован:
Рейтинг: 5
голосов: 2