![](/img/trans.png)
[英]Visual Studio C++, how to change the text color for “nullptr”
[英]not able to change text color and text background of output in visual studio 2010
如何在visual studio 2010中更改輸出的文本顏色和文本背景? textcolor() ,textbackground(), textmode()
函數不起作用。 還有其他選擇嗎?
如果我正確地理解了你的問題,而你正在談論改變c / c ++ 控制台應用程序中的顏色。
您可以使用SetConsoleAttribute更改控制台中的顏色。 這是一個例子
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.