Hi,
I want to have the following in my program:
"Encrypt message ? (Y / N):"
If the user enters Y then a boolean variable is set to true and if they enter N a boolean variable is set to false.
Any other character should result in the message above being displayed again.
I've tried a number of different methods such as using getchar() and fgets(), but I can't find an elegant solution.
Does anyone have any ideas?
Thanks.