Hi i am pretty naive to c++,already knew java.
Please tell me what 's wrong with this simple code.
It's not displaying integer entered by me but return back after entering integer and hitting enter.I am using devc++.
Hmmmn... the problem here may be that programs in console mode, when spawned from Windows (or Mac operating system or whatever), tend to immediately go away when they are done running. That is why all the examples in my book use system("PAUSE");
However, the use of cin.get() recommended by the other post should work fine, I think.
Hope this helps... best of luck with your programming,