Dev C++ Yes Or No Question
|
So I'm looking to create a function that prompts the user to enter 'Y' for 'Yes restart the program' and 'N' for No, do not restart.
Dev C Yes Or No Question Questions
I know this should use the boolean operator, I'm just unsure as to how to implement it.
I also know to encase the body in a while loop ending in 'else if ('no')' for example.
I know this is completely wrong, but it's what I'm thinking could work:
/jesse-cook-rain-mp3-free-download.html. and the while loop being something like:
Thanks a lot for all the help!
- 4 Contributors
- forum 6 Replies
- 2,912 Views
- 20 Hours Discussion Span
- commentLatest Postby SyrneLatest Post
Recommended Answers
Dev C Yes Or No Question Game
Jun 04, 2009 I can't believe that it so hard (maybe just for me) to do this. (Hope this is the right place in this forum for this question). It's so easy in VB NET but when I use C#, I can't not make the If Statement with Yes/No question and catch it from user in order to perform some code line.
- Validating Yes/No answers in C. Ask Question Asked 2 years, 4 months ago. Active 2 years, 4 months ago. Viewed 10k times 23. 4 $begingroup$ I intend to accept all of the following answers. $begingroup$ Yes it does - which is kind of in keeping with the original question plus mixtures, such as yeS.
- Deep Yes/No Questions. April Carolina. Have you ever been left out by the people you love? No Log in or sign up.
Dev C++ Yes Or No Questions
Your trying to compare letters, not numbers.
[CODE]int select;//should be char or string[/CODE]
[CODE]if(select.equals('Y'))
{//return a value}
if(no)
{//return a value}[/CODE]