C++ Question. I need a miracle from the C++ gods......
so I have my C++ program, everything works fine. It even gives me output.
the last lines of my code in main() are
char x;
cin>>x;
its just to keep the window open until i press a key to allow the program to close.
but when i enter a character and press enter, it crashes.. or rather. windows says it crashes...
when i delete the cin, it just crashes on termination,
WHY??!!!!
thanks....... just about going crazy with this...
|