简体   繁体   中英

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. 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.

For formatting and colors there are special files - HTML, RTF and others. If you want to write such thing you must ask the question that way.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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