[英]not able to change text color and text background of output in visual studio 2010
how to change text color and text background of output in visual studio 2010? 如何在visual studio 2010中更改输出的文本颜色和文本背景?
textcolor() ,textbackground(), textmode()
functions are not working. textcolor() ,textbackground(), textmode()
函数不起作用。 is there any alternative? 还有其他选择吗?
If I understood your question correctly, and you're talking about changing colors in your c/c++ console application. 如果我正确地理解了你的问题,而你正在谈论改变c / c ++ 控制台应用程序中的颜色。
You can use the SetConsoleAttribute to change the color in the console. 您可以使用SetConsoleAttribute更改控制台中的颜色。 Here is an example
这是一个例子
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.