Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::string NameStems[] = {
- "Sarge: ", "Jenny: ", "Harold: ", "Michael: ", "Rick: ",
- "Axle: ", "Bob: ", "Janine: ", "Ester: ", "Lacey: ",
- "Lexi: ", "George: ", "Nitro: ", "Amber: ", "Coco: ",
- "Ivy: ", "Lauren: ", "Daniel: ", "Josh: ", "Kane: "
- };
- std::string botNameGen()
- {
- return NameStems[rand() % 20]);
- }
- srand((long)time(NULL)); //Seed the random number generator...
- std::string botPlayer1Name = botNameGen();
- cout << sPlayer->pName << ": ";
- getline(cin,input);
- if(botPlayer1Name == "Sarge: ")
- {
- bool botCounter = true;
- do
- {
- botPlayer1Name == "Sarge: ";
- }
- while (botCounter == true);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement