Friday, May 15, 2015

Open a console window

AllocConsole(); //open the console window
freopen ("CONOUT$", "w", stdout); //set output available to this console
freopen("CONIN$","r",stdin); //set input avaiable to this console

more details on freopen Reference

No comments:

Post a Comment