I want to be able to do something along the lines of Press any key to exit at program completion, but have no been able to figure out how to.
Press any key to exit
When I run
getchar() is the right way to go, but you'll run into problems caused by scanf leaving '\n' in the input buffer - it will return immediately. See Why doesn't getchar() wait for me to press enter after scanf()?
getchar()
scanf
'\n'