I want to ask if there is a certain command to make the the console output certain texts in a color other than the default .. not all the console but a certain line ..
Hrmm....
The only way I know of doing this is the system("color c") code or something...
Back when I used batch, I would do something like this(for C++, just put system("") around every line, put the line in the ""s.):
1 2 3 4 5 6 7 8 9 10 11 12 13 14
@echo off
title colortest
:start
cls
color a
echo This is line 1.
echo.
color b
echo This is line 2.
echo.
color c
echo This is line 3.
echo.
goto start
...
It would look really buggy, but it got the job done(only on windows :P).
It just refreshes as fast as it can, printing the same thing really fast repeatedly.
Let me know if that works for you.
There is no command that writes text with a specified color, but there are commands that can change the text apperance. You can eazily write a wrapper for your own printf or if you're using std overload the << operator with a custom made class so i'd look look like this:
cout<<color::red<<"Hai"<<endl;//No class
or
cout<<Format(color::red, "Hai");//Class Format
operator overloading in Cpp is mighty strong:P
As for the functions, google "console functions msdn"