C++ help..
Well.. I'm currently having the issue with wondering how to display all three choices in the beginning.
Like for Example: Code:
Pick an option:But i did mine in ifstatements mostly.. I thought i could get around it but i got lost. Here's my current Source Code: It compiles correctly but doesnt do what i wanted it to do.. Help would be appreciated. Also i'm uploading the .exe file so an can see the software in action.. |
Re: C++ help..
try something like this, i dunno if the syntax is right or not though
PHP Code:
|
Re: C++ help..
ya but right after that part you say cout << "1: Show First Option Information" << endl; or whatever and cout << "2: Show Whatever Else" << endl; and cout << "3: Option 3 Information" << endl;
you gotta add that too it and if they pick option 1-3 it should go to those functions, and if you pick option 0 it should quit also it checks if they entered any numbers less than 0 or greater than 3 which you dont even need, because the default case handles it anyway but do you get what im saying? ill edit this in a sec to show you what i mean |
Re: C++ help..
Here ill just edit this, sorry for double post but whatever
PHP Code:
|
Re: C++ help..
hmm. when i click to display it it shut's the program down.
EDIT: nevermind.. i just added a system("PAUSE") |
Re: C++ help..
so it works?
|
Re: C++ help..
not completely done with it.
|
Re: C++ help..
What's the point of this program? Or future use if any.
|
Re: C++ help..
It looks like he's trying to do something called learnding.
http://simpsonspedia.net/images/thum...lph_Wiggum.png |
Re: C++ help..
Quote:
When you select a choice it displays the output. Then it say's: "Press any key to close..." or whatever. How can i add the other 3 choices instead of press any key to close.." LIke ex: YOU'VE SELECTED #2 blah blah blah 1. CS4$ 3. Credits 4. Program info 0. Exit (Like what im saying if you dont understand is, after you have already selected one an the output has came up on the program, under it bring the menu choice back up then after you've completely gone through the menu choices be able to press any key to close. Here's the code now: Code:
#include <iostream> |
| All times are GMT -4. The time now is 06:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.