Every time I write, compile and execute some C++ in VS express, after the whole program is done the console just closes itself. But I printed the result to the console and now I'm not able to see what it says, it just closes.
How should I go about to fix this?
Thank you. If it helps, here is the code:
http://pastebin.com/BPQsnHRn