Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Joe is gay
- #include<iostream>
- #include<string>
- using namespace std;
- int main()
- {
- bool game = true;
- string my_string = "Pineapple";
- int guess;
- int str_length = my_string.length() + 1;
- cout << "The goal of this game is to enter the EXACT length of the string given. In this case, you are given the string " << my_string << ". Godspeed." << endl;
- cout << "Please enter the EXACT length of the given string... \n";
- cin >> guess;
- while (game) {
- if (guess == str_length) {
- cout << "You're a fucking wizard! Congratu-fucking-lations, you won!" << endl;
- game = false;
- }
- else if (guess != str_length) {
- str_length += guess;
- cout << "Do you not know how to count?!" << endl;
- cout << "Please try again... \n";
- cin >> guess;
- }
- else;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement