Joined: Tue Nov 06, 2007 2:17 pm Posts: 847 Has thanked: 0 time Have thanks: 1 time
Introduction
This article illustrates a snippet that permits to add color to console messages. Background
Well, does it really need any comments? Using the code
This sample shows how to use the library:
Code:
#include "ConsoleColor.h"
std::cout << green << "This text is written in green" << white << std::endl; std::cout << color(FOREGROUND_RED|FOREGROUND_GREEN) << "This text has a really exiting color !" << white << std::endl;