L
L
lukepker2020-10-10 19:32:16
C++ / C#
lukepker, 2020-10-10 19:32:16

How to colorize cells in the C++ output console?

I am writing a lab. work.
I have similar pictures.
5f81e1e39206c139879408.png
Is it possible to do something so that when outputting to the console there are not 0 and 1, but black squares instead of zeros, and white ones (or vice versa, not the point)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman, 2020-10-10
@lukepker

pay attention to

characters in column D (rows B,C and F)
genpr69.jpg

All encodings commonly used by Windows, Linux and Unix consoles have their counterparts.
and also look at the output to the console of colored inscriptions

S
Saboteur, 2020-10-10
@saboteur_kiev

If your console supports colors, you can display black characters on a black background and white characters on a white background, creating "squares".
You can see what characters there are except for numbers of letters.
Well, among other things, the text console works with symbols, not graphics. The display may depend on fonts that have nothing to do with your program

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question