Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. switch(menu)
  2. {
  3. case '1' :
  4.  
  5. while(true)
  6. cout << "\tUnscramble this word! ( 1 point ) : " << jumble << endl;
  7. cout << "\n\nYour Guess: ";
  8.  
  9. cin >> guess;
  10. //menu 1
  11. while (guess != theWord && guess != "quit"){
  12. if(guess == "hint"){
  13. cout << theHint << endl;
  14. }
  15.  
  16. else if(tries == 2){
  17. cout << "You have exceeded the amount of tries.\n\n";
  18. cout << "GAME OVER! \n\n";
  19.  
  20. //player inputs name
  21. string Name;
  22. cout << "Enter your name: " << endl;
  23. cin >> Name;
  24. cout << endl;
  25.  
  26. return 0;
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement