| | |
bloodshed devc++ 4.9.9.2
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
Hello guys,
Does anyone know how to keep a console window active till the user presses any key on the keyboard to close the console? Everytime I create a program on devcpp, when I run it the console window just doesn't stay there, it disappears within seconds. I knew how to do this with an older version of devcpp, but since I've upgraded it, I haven't really used it much. Now I want to start with some 2d gaming programs.
Ronica
Does anyone know how to keep a console window active till the user presses any key on the keyboard to close the console? Everytime I create a program on devcpp, when I run it the console window just doesn't stay there, it disappears within seconds. I knew how to do this with an older version of devcpp, but since I've upgraded it, I haven't really used it much. Now I want to start with some 2d gaming programs.
Ronica
have you tried
?
C++ Syntax (Toggle Plain Text)
system("pause") ;
It is practically impossible to teach good programming style to students that have had prior exposure to Basic; as potential programmers they are mentally mutilated beyond hope of regeneration.
-Edsger Dijkstra
-Edsger Dijkstra
:O
You could have at least gave a platform independant solution! oreven better yet, run your commandline program from the commandline/termianl xD
Chris
You could have at least gave a platform independant solution!
C++ Syntax (Toggle Plain Text)
cin.get();
Chris
Knowledge is power -- But experience is everything
![]() |
Similar Threads
- DevC++ Help (C++)
- Linker Error in Turbo C++ v3.0 (C++)
- Want a free compiler for C/C++ under Windows (C++)
- Visual C++ Compiler (C++)
- compilers.... (C++)
- Having trouble passing bool type to function....need help (C++)
- Old School Compiler vs New Compiler (C++)
- Dev bloodshed question. ������ (C++)
Other Threads in the C++ Forum
- Previous Thread: help with arrays and class points
- Next Thread: Finding paths in a labyrinth
| Thread Tools | Search this Thread |
api array based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count database delete deploy desktop developer dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int java lib linkedlist linker list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference rpg sorting string strings temperature template test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






