I am using Dev-C++ compiler.
After compile and run the cmd window is not staying open. The programe runs
but the window closes imidiatly.
I s the re any code line that i nedd to modify so i can see the results?
Thanks
Something like
getc();
getc();
Your answer is here:
http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.9
However, put the following at the end of main:
std::string trash;
std::getline(cin, trash);
What's wrong with std::cin.get(); ? IIRC...
--
WW aka Attila
:::
Usenet is like a herd of performing elephants with diarrhea - massive,
difficult to redirect, awe-inspiring, entertaining, and a source of mind -
boggling amounts of excrement when you least expect it. - Gene
Spafford,1992