Different colours without system("color attr");

closed account (4GNRko23)
Hello there,

I was developing a program for a friend that is teacher on elementary school and he asked me or I could develop a program for him that will help the children practice their mathematical tables. The program is finished and I'm proud of my creation, to be honest.

So I was thinking, if the person types the wrong, why not make the sum and amount in a red colour (sorry, I'm not the best person to explain mathematics in English). Using system("color 0E"); is highly impractical, as it is exploitable (shouldn't worry about that) and changes the complete prompt.

tl;dr? How can I make a single line in a different color? Like line 1 is blue and line 2 is red.


Thanks in advance,
~nickvth2009
Topic archived. No new replies allowed.