the program exites as soon as it reaches the end but I want it to ask the user if they want to exit or continue again?
soche123 0
Junior Poster in Training
Recommended Answers
Jump to PostYou're talking about a loop.
Half way down:
http://www.cplusplus.com/doc/tutorial/control/
Jump to Posta do while should work for you just make sure you create an if statement so the program exit if the user enter a specific phrase
All 6 Replies
Moschops 683
Practically a Master Poster Featured Poster
Captain119 0
Light Poster
rishif2 57
Posting Whiz in Training
nullptr 167
Occasional Poster
Moschops 683
Practically a Master Poster Featured Poster
new_developer 0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.