无法更改 Visual Studio 2010 中输出的文本颜色和文本背景
not able to change text color and text background of output in visual studio 2010
如何在Visual Studio 2010中更改输出的文本颜色和文本背景? textcolor() ,textbackground(), textmode()
功能不起作用。还有其他选择吗?
如果我正确理解了您的问题,并且您正在谈论在c/c ++控制台应用程序中更改颜色。
您可以使用 SetConsoleAttribute 在控制台中更改颜色。这是一个例子
相关文章:
- 如何让控制台输出覆盖控制台而不是纯文本输出?
- 如何清除文本输出?
- C++ 如何居中文本输出
- 如何将光标移动到 cin.clear() 和 cin.ignore() 之后的文本输出末尾?
- 期望文本输出而不是数字
- 如何将文本输出到另一个已打开C 的控制台
- 将文本输出到文本框C 中
- 将格式化文本输出到屏幕
- 用C++排列文本输出
- 使用 std::ostream 方法将格式化文本输出到 std::string 对象
- 文本输出() - "invalid null pointer"
- 将文本输出到C++ Winform
- C++不会创建要将文本输出到的文件
- 是否有一种简洁的方法可以将文本输出到调试窗格
- 将.txt文件中的文本输出到c++控制台中
- 使用 ofstream 进行缓冲文本输出以获得性能
- 文本输出发送到文件,稍后在程序中使用.如何使用缓冲区
- 是否有用于80列格式文本输出的库/方法
- 将文本输出到窗口控制台.c++
- C++ (VC) 文本输出用 0d 0d 0a 而不是 0d 0a 换行 - 如何修复