简体   繁体   English

C ++ GUI和控制台应用程序

[英]C++ gui and console application

Could I use gui for taking the input from the user and use console to print the output ? 我可以使用gui从用户那里获取输入,并使用控制台打印输出吗? by other words, I mean could I mix both the windows or gui c++ with console application in one application ? 换句话说,我可以将Windows或gui c ++与控制台应用程序混合在一个应用程序中吗?

是的,可以,在linux上几乎是Windows上的框,您必须为应用程序创建控制台。您的平台是什么?

You should start with a normal GUI application of your choice. 您应该从选择的普通GUI应用程序开始。 Calling AllocConsole will then add a console window to your application. 然后,调用AllocConsole将向您的应用程序添加一个控制台窗口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM