有没有办法使c + +控制台文本更大? [英] Is there a way to make c++ console text larger?

查看:113
本文介绍了有没有办法使c + +控制台文本更大?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用随机数字生成器,程序将创建几个随机数字,然后从这些随机数字中选择,然后在窗口中显示该数字。

I'm making a random number generator, the program will create several random numbers and then choose from those random numbers and then displays that number in the window.

我想知道是否有一种方法可以使特定的文字更大?
我不想改变窗口中所有文本的大小,因为我在窗口中写了,我不想改变

I was wondering if there was a way to make that specific piece of text bigger? I don't want to change the size of all of the text in the window as I have writing in the window that i don't want to change the size of

感谢您给予任何帮助

推荐答案

不,但可以使其粗体,更改字体颜色,或特定文本的背景颜色。如果你想要的是让那个特定的文本脱颖而出,我会着色它。

No, but you can make it bold, change the font color, or the background color for the specific text. If all you want is to make that specific piece of text stand out, I'd go with colorizing it.

至于如何做到这一点...它是平台依赖。你是什​​么平台?视窗? Linux?什么shell?

As for how to do that... It's platform dependent. What platform are you on? Windows? Linux? What shell?

请参阅 Windows控制台API 。这应该有你需要的。

Take a look at the Windows Console API. That should have what you need.

这篇关于有没有办法使c + +控制台文本更大?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆