Jan 13, 2017 Installation instructions of openCV using version 2.0 with Dev C It is suitable for WinXP users. Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising. C Yes or No without Boolean Home. Programming Forum Software Development Forum. (NO BOOLEANS, NO GETLINES). Just Do-While Statement. Apr 13, 2010 Today I show u how to do a Yes or No command.I thought this will be great for a Q & A program, or some other program that needs a Yes and No command. Yes or No (C) BlackScorpion420.
The free Dev-C 5.11 download is provided on our website. The built-in antivirus system indicates that the program is virus free. According to the information on our software library the most popular versions of the tool are: 5.11, 5.10 and 5.9. Universal SubscriptionOur Best Value – includes over 600 UI Controls, our award-winning reporting platform, DevExpress Dashboard, the eXpressApp Framework, CodeRush for Visual Studio and more.
Exercise:
Write a C++ program using do-while loop that prompts for and inputs a user entry of 'Y' or 'N'. f the user fails to enter a correct value, the loop outputs an error message and then repeats the request for the user to enter a value.
Write a C++ program using do-while loop that prompts for and inputs a user entry of 'Y' or 'N'. f the user fails to enter a correct value, the loop outputs an error message and then repeats the request for the user to enter a value.
This is what I did and it seems like I did the other way around. (NO BOOLEANS, NO GETLINES). Just Do-While Statement
Edited by dominiquehelper: Incorrect Input
- 5 Contributors
- forum 4 Replies
- 2,786 Views
- 14 Hours Discussion Span
- commentLatest Postby PodHunterLatest Post
mark5rockzz_10
![Dev C++ Yes Or No Dev C++ Yes Or No](/uploads/1/2/5/7/125718230/471506665.png)
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.
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:
and the while loop being something like:
Thanks a lot for all the help!
- 4 Contributors
- forum 6 Replies
- 2,948 Views
- 20 Hours Discussion Span
- commentLatest Postby SyrneLatest Post
Recommended Answers
Your trying to compare letters, not numbers.
[CODE]int select;//should be char or string[/CODE]
[CODE]int select;//should be char or string[/CODE]
C++ Yes Or No Program
[CODE]if(select.equals('Y'))
{//return a value}
if(no)
{//return a value}[/CODE]
Jump to Post{//return a value}
if(no)
{//return a value}[/CODE]