By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,983 Members | 1,717 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,983 IT Pros & Developers. It's quick & easy.

How can i make a c++ program when it finishes go back to start

P: 1
i want my program that when it ends instead of closing it goes back to the top
like an example:

int go;
cout<<"text here ";

cout<<"wow u made it";

instead of closing the program when u press enter, i want it to go back to start
can someone help me?
Aug 8 '07 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 463
The concept you are taking about is looping. Loops allow specific code to be rerun as many times as you want.

The following link has an example of this control structure.
Aug 9 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.