Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. std::string building;
  2.  
  3. std::cout << "-CONSTRUCTION MENU-" << std::endl << std::endl;
  4.  
  5. std::cout << "1. Barrack" << std::endl << std::endl;
  6.  
  7. std::cout << "Build: ";
  8.  
  9. std::cin >> building;
  10.  
  11. if (building == "1" || building == "Barrack" || building == "barrack")
  12. {
  13. std::string sentence[10] = { "1%", "2%","3%", "4%", "5%", "6%", "7%", "8%", "9%" };
  14.  
  15. for (int index = 0; sentence[index] != sentence[9]; index++)
  16. {
  17. std::cout << sentence[index] << std::flush;
  18. std::cout << "bb";
  19. Sleep(150);
  20.  
  21. if (index == 8)
  22. {
  23. system("cls");
  24. std::cout << "Building done" << std::endl;
  25. system("pause");
  26. break;
  27. }
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement