Console Window Dev C++

DevWindows

How To Open Windows Console

Nov 29, 2016  Delphi is the ultimate IDE for creating cross-platform, natively compiled apps. Are you ready to design the best UIs of your life? Our award winning VCL framework for Windows and FireMonkey (FMX) visual framework for cross-platform UIs provide you with the foundation for intuitive, beautiful. Getting help. Please read the FAQ first. If the FAQ doesn't help, please visit or join one of the following: Mailing list: this is a great place for people to ask questions about Dev-C or programming. Problems should also be reported here or at the forum. Dec 16, 2017  having two console windows in c application as the title suggests, i need to have 2 separate console windows in my application. One should be the 'main' console, and the other should be an independent one that has its own inout and output streams. I've read that it's possible to do it using WIN API by creating a new process. I've considered.

Console Window Dev C 2017

P: n/a
#include <iostream>
int main(int argc, char **argv)
{
while(!cin.get()){}
}
'Miktor' <bi************@hotmail.com> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.com...
At the minute I am using the following rather unwieldy function to
prevent the console
window in Dev C++ from closing before I can see the output from my
program:
// function to prevent the Dev C++ Console Window from closing
// before I can see the program's output
void keepConsoleWindowOpen ()
{
int any_number;
std::cout << 'nn';
std::cout << 'Please enter a number to end the program:';
std::cout << 'nn';
std::cin >> any_number;
}
In order to prevent the console window from closing too soon, I call
the above
function with:
keepConsoleWindowOpen ();
This works, but I'm sure it's not the most elegant method to use. Does
anybody else
know of a better way to prevent the console window from closing too
soon when writing
a C++ program in Dev C++ ?
Thanks in advance!
BigBadMick
(bi************@hotmail.com)