I was wondering if there was another way of changing the color because system("color #) changes the whole screen and method 2 is very clumsy to work with if you only want to change small parts of the code. Any body know if there are any other ways?
system (color) will change the whole screen.
You are using the right function SetConsoleTextAttribute() but
you are using it incorrectly.
Here is an example of how to use it. This will set the foreground text to RED - and as there is no mention of a background color then background will be BLACK.
Actually using the number directly is fine. The attribute byte is the same format as the EGA text attribute byte, except that the fourth bit of each nibble always represents intensity.