0

In a rubiks cube solving program I'm writing, i wanna make it so if the space is red, then a red "R" appears. I don't know how to do this with out changing the color of all the text on the screen. I use:

system("Color XX");
2
Contributors
6
Replies
7
Views
8 Years
Discussion Span
Last Post by Hawkpath
0

Thank you so much! It worked. Were you saying make the code into a function so that when I needed to change a color I could just say:

colorRed();

or something to that effect?
If so, would I need to include any return values?

0

> or something to that effect?
Pretty much - though a colour parameter might be better than a number of different (but similar) function names.

> If so, would I need to include any return values?
That's entirely up to you.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.