Sure, for example, if you use my small utility library above. Here is what you would do.
Code:
#include <iostream.h> // namespace ver works too
#include <util_lib_above.h>
void main()
{
text_color(1, 0, 0, 1); // red green blue bright
cout << "Hello Red World" << endl;
text_color(0, 1, 0, 1); // red green blue bright
cout << "Hello Green World" << endl;
}
You can achieve some cool effects in the console. Take this out for a test try.
Code:
#include <iostream.h> // namespace ver works too
#include <util_lib_above.h>
#include <stdlib.h>
void main()
{
while ( 1 )
{
if ( rand() % 2 )
{
text_background(0, 0, 0, 0);
text_color(0, 0, 0, 0);
}
else
{
text_background(1, 1, 1, 1);
text_color(1, 1, 1, 1);
}
text_loc( rand() % 80, rand() % 20 );
cout << " ";
}
}