Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::string building;
- std::cout << "-CONSTRUCTION MENU-" << std::endl << std::endl;
- std::cout << "1. Barrack" << std::endl << std::endl;
- std::cout << "Build: ";
- std::cin >> building;
- if (building == "1" || building == "Barrack" || building == "barrack")
- {
- std::string sentence[10] = { "1%", "2%","3%", "4%", "5%", "6%", "7%", "8%", "9%" };
- for (int index = 0; sentence[index] != sentence[9]; index++)
- {
- std::cout << sentence[index] << std::flush;
- std::cout << "bb";
- Sleep(150);
- if (index == 8)
- {
- system("cls");
- std::cout << "Building done" << std::endl;
- system("pause");
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement