Quote:
Originally Posted by MrPickle Woo hoo! Thanks!!
Please show me how, I've only started learning today.
On a different subject, is there a way to prevent the command prompt from closing? EG make it close when you press Enter? |
Windows automatically closes a command prompt window when a program has finished running. As far as I know, there's no way to stop windows from doing that, so you need to find some way to stop your program from finishing, until you want it to.
If you use MS Visual Studio as your IDE, then use [CTRL]+[F5] to compile/run your programs. VS will add a "pause" after your program finishes.
if you're not using MSVC, then have a look at this link
Cprogramming.com: FAQ