Here 's the code. Remember, I'm still a beginner so its possible for me to make the mistakes too. So everybody, please chill before telling me that my code is COCKING UP
Below is the code, when I run it on VC ++, I still get my runtime error. Mind you, I get the error AFTER all the OUTPUT i.e. the entire vector has been printed out.
NO such error on Dev C++. Perhaps, someone here can tell me why.
A thought occurs to me, on first look at your code and the description of the error you are getting.
"Proj.exe has has stopped working"
Would I be correct in assuming that you close the window by click the red cross and not pressing return?
If so, then the 'error' is due to this. VS is not letting the window close and when Windows does not get a response from the request to close it informs you that it has stopped and will be closed.