| | |
How to use Dev C++
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
I cannot figure out how to open the results/output window in Dev c++. Also how to effectively use step over / step into . I kept breakpoints at certain points in my program but step over from then onwards does not happen by pressing ctrl+f7 and I dont know how to do it . I am using
Dev C++ 4.9.9.2 version .
Thanks ,
comwizz
Dev C++ 4.9.9.2 version .
Thanks ,
comwizz
•
•
•
•
Originally Posted by comwizz
Please reply.
•
•
•
•
Originally Posted by comwizz
I cannot figure out how to open the results/output window in Dev c++. Also how to effectively use step over / step into . I kept breakpoints at certain points in my program but step over from then onwards does not happen by pressing ctrl+f7 and I dont know how to do it . I am using
Dev C++ 4.9.9.2 version .
>I cannot figure out how to open the results/output window in Dev c++.
Assuming I understand what you mean, the output window is a command prompt process that's created when you run your program and terminates when your program ends. Just hit F9 to compile and run, or choose the option you want from the Execute menu. But keep in mind that you'll need to use a trick to keep the window open long enough to read your output. The accepted solution is to ask for input:
>Also how to effectively use step over / step into
I never liked Dev-C++'s debugging interface. I always drop down to the command line and use gdb directly rather than fiddle with it.
Assuming I understand what you mean, the output window is a command prompt process that's created when you run your program and terminates when your program ends. Just hit F9 to compile and run, or choose the option you want from the Execute menu. But keep in mind that you'll need to use a trick to keep the window open long enough to read your output. The accepted solution is to ask for input:
C++ Syntax (Toggle Plain Text)
#include <ios> #include <iostream> #include <limits> void pause_program ( const char *msg ) { std::cout<< msg; // This might not work as advertised if ( std::cin.rdbuf()->in_avail() > 0 ) std::cin.ignore ( std::numeric_limits<std::streamsize>::max(), '\n' ); std::cin.get(); }
I never liked Dev-C++'s debugging interface. I always drop down to the command line and use gdb directly rather than fiddle with it.
I'm here to prove you wrong.
•
•
•
•
Originally Posted by sunnypalsingh
System Command- Non-Portable,Very Expensive
It is portable, since it's on my laptop I can carry it around with me everywhere I go. :rolleyes:
>Very Expensive
Didn't cost me a dime to use. :rolleyes:
Or am I just clutching at straws here.
*Voted best profile in the world*
•
•
•
•
Originally Posted by iamthwee
>Non-Portable
It is portable, since it's on my laptop I can carry it around with me everywhere I go. :rolleyes:
>Very Expensive
Didn't cost me a dime to use. :rolleyes:
Or am I just clutching at straws here.
•
•
•
•
Originally Posted by sunnypalsingh
System Command- Non-Portable,Very Expensive
Portability is not an issue here; a command line program to be ported to other platforms would have the end-of-program wait-for-input removed anyway.
All my posts may be redistributed under the GNU Free Documentation License.
![]() |
Similar Threads
- dev-c++ Premature Closing (C++)
- Dev-C++, GLUI linker error, undefined reference (C++)
- Dev-C++ Help (C++)
- coding a complete binary tree with Dev-C++ (C++)
- Problem getting SDL to work with Dev-C++ (C++)
- Problem getting SDL to work with Dev-C++ (C++)
- Are there any Dev C++ tutorial out there? (C++)
Other Threads in the C++ Forum
- Previous Thread: copying in files
- Next Thread: using 5 different variables
| Thread Tools | Search this Thread |
api array arrays based beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion count data delete deploy desktop developer directshow dll download dynamic encryption error file forms fstream function functions game getline givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news node number output parameter pointer problem program programming project proxy python read recursion recursive return string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






