-
How to clear the screen?
Hey everyone, my first post here :D
Is there a code for C++ that will make the dos screen clear up, i.e. after a Switch code, and when you choose your number the dos screen will clear up and only putting in the "facts" of what you chose to have. Sorry for my bad english, if you do not know what i mean please say so, i'll try and elaborate further :p
Best Regards,
Micheal
-
How to read the FAQ?
You should have taken a few seconds to read the FAQ and board rules, and all would be answered.
[edit]Fixed link.[/edit]
Quzah.
-
I apologise, I tried reading the faq but your link doesn't work?
Regards,
Micheal
-
Well if you want specifics, go here. I fixed the first link, so you'll probably want to go look at it also for other topics. Or just go from the link on the main page.
Quzah.
-
Here, let me help Quzah out.:)
Programming FAQ
There's also a link at the bottom of this page.
-
Ok good, now Zopyrus can choose between four links to click.
-
Thanks alot for your help guys!
However i Have another question which i couldn't find in the faq,
I've used a 'Switch' code with different options to choose from when running the program. What I want to know is how to make the program restart after that you're done with one option.. i want the program to restart for example when ur done, it'll ask "you want to restart?" if you type Yes, then all the options will come as in the beginning. What is the code for that?
Thanks,
Micheal
-
Just use a do..while loop.
Code:
do
{
//do all processing etc.
//ask the user if they want to continue
} while( user_wants_to_continue == true );
-
ahhhh as simple as that!
Thanks for the help!
Best Regards,
Micheal