Console application
Edit:
I don't know what this user originally wanted and hopefully they will edit their question to inform us, but if not, let me use this question to answer (or provide a link) to the following common console window problems: / p>
- How can you get the output of a console application in your program (for example, start the build process and get the output in your IDE)?
- How can you hold the console application long enough to see the result when you hit "run" in the IDE? (i.e. getch for C, some IDEs have options to set what is the common / popular pause and wait for keypress routines you use to open the console window long enough to see the result? This applies to many languages ââ- list yours method)
Original question:
How to view the output of a console application screen (black screen). detail.
+1
priya
source
to share
4 answers
Keeping the console window open for C ++ is standard (not platform specific):
#include <iostream>
#include <limits>
int main() {
// Rest of the code
//Clean the stream and ask for input
std::cin.ignore ( std::numeric_limits<std::streamsize>::max(), '\n' );
std::cin.get();
return 0;
}
-Adam
+1
source to share