简体   繁体   English

在C ++上设置文件颜色

[英]set file colors on c++

I am drawing a chart in a text file and I want to set the rows color grey and white one by one but I couldn't find the function that can help me. 我正在文本文件中绘制图表,我想将行颜色设置为灰色和白色,但是我找不到能帮助我的功能。 my compiler is code blocks on windows. 我的编译器是Windows上的代码块。 can anyone please tell me the number of these colors and related function? 谁能告诉我这些颜色的数量和相关功能? thanks 谢谢

A text file is just text. 文本文件就是文本。 It has just nothing but the letters and punctuation. 它只有字母和标点符号。 It has no notation of color or whatever. 它没有颜色或任何符号。 So you can't do it in C++ or anything else. 因此,您不能使用C ++或其他任何方式。

For formatting and colors there are special files - HTML, RTF and others. 对于格式和颜色,有一些特殊文件-HTML,RTF和其他文件。 If you want to write such thing you must ask the question that way. 如果您想写这样的东西,您必须以这种方式提出问题。

在C ++中无法更改文件中文本的颜色

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

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