Alternative to Attaching a Console to a WinForms application
Very good tip. I just want to mention an alternative - you can just change your project output type to a console application. (You can undo it later if only needed for debugging). So if you started with a Windows Forms project in Visual Studio: Go to project properties/application/ and in the...
Writing to and read from the console - From a GUI application using the same cout/cin and printf/scanf