Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int move();
- int main()
- {
- int newLocation = move();
- std::cout << "Bravo uspio si!" << std::endl;
- }
- int move()
- {
- int yourLocation;
- std::cout << "neki tekst" << std::endl;
- std::cout << "jos malo nekog teksta" << std::endl;
- std::cout << std::endl;
- std::cout << "1.Go to town\n2.Stay in bed";
- std::cout << std::endl;
- std::cout << std::endl;
- std::cin >> yourLocation;
- while (yourLocation != 1)
- {
- std::cout << "Are you ready now? Press 1 to go to town, press 2 to stay in bed\n";
- std::cin >> yourLocation;
- }
- return yourLocation;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement