Try the following...
I would recommend placing the following statement just before the return 0 statement:
std::cin.get();
This would wait for the user(you) to press any key from keyboard in order to exit the application.
Which IDE you are using for these code samples?
Alexandros
Last edited by BlueTower; September 30th, 2015 at 01:51 PM..
|