Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int i = 0;
- char str[] = secretWord;
- while (str[i])
- {
- if (isalpha(str[i])) cout << "Thank you!\n";
- else cout << "Sorry, please enter a word with no numbers or special characters: \n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement