Advertisement
Guest User

Untitled

a guest
Oct 26th, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. int i = 0;
  2. char str[] = secretWord;
  3. while (str[i])
  4. {
  5. if (isalpha(str[i])) cout << "Thank you!\n";
  6. else cout << "Sorry, please enter a word with no numbers or special characters: \n";
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement