Hey guys, I'm using Dev-C++ compiler for my coding, but everytime I write a program that prompts the user to do input, and they press enter to well, enter the input, the program closes on me without letting me see the result. How do I get around this? I've tried doing
cin.get() and
cin.ignore(cin.rdbuf()->in_avail()+1)
None of these seem to work. Anyone got any ideas? Thanks.
-Kai