Search
 
SCRIPT & CODE EXAMPLE
 

CPP

c++ print colorful

//the following are UBUNTU/LINUX, and MacOS ONLY terminal color codes.
#define RESET   "33[0m"
#define BLACK   "33[30m"      /* Black */
#define RED     "33[31m"      /* Red */
#define GREEN   "33[32m"      /* Green */
#define YELLOW  "33[33m"      /* Yellow */
#define BLUE    "33[34m"      /* Blue */
#define MAGENTA "33[35m"      /* Magenta */
#define CYAN    "33[36m"      /* Cyan */
#define WHITE   "33[37m"      /* White */
#define BOLDBLACK   "33[1m33[30m"      /* Bold Black */
#define BOLDRED     "33[1m33[31m"      /* Bold Red */
#define BOLDGREEN   "33[1m33[32m"      /* Bold Green */
#define BOLDYELLOW  "33[1m33[33m"      /* Bold Yellow */
#define BOLDBLUE    "33[1m33[34m"      /* Bold Blue */
#define BOLDMAGENTA "33[1m33[35m"      /* Bold Magenta */
#define BOLDCYAN    "33[1m33[36m"      /* Bold Cyan */
#define BOLDWHITE   "33[1m33[37m"      /* Bold White */
Comment

PREVIOUS NEXT
Code Example
Cpp :: string to vector c++ 
Cpp :: modify file cpp 
Cpp :: how to print a decimal number upto 6 places of decimal in c++ 
Cpp :: int_min in cpp 
Cpp :: initialize 3d vector c++ 
Cpp :: cpp sample code 
Cpp :: c++ string erase all occurrences 
Cpp :: hello world in cpp 
Cpp :: how to declare comparator for set of pair 
Cpp :: c++ pi 
Cpp :: swap using Function template in c++ 
Cpp :: c++ edit another processes memory address 
Cpp :: c++ pass argument to singleton 
Cpp :: ue4 get socket location c++ 
Cpp :: watermelon codeforces solution 
Cpp :: filling dynamic array with a specific value in c++ 
Cpp :: c++ string to wstring 
Cpp :: set precision in c++ 
Cpp :: custom comparator in set of struct 
Cpp :: C++ Converting Kelvin to Fahrenheit 
Cpp :: C++ shortcuts in desktopp app 
Cpp :: c++ find sum of vector 
Cpp :: c++ loop pyramid 
Cpp :: helloworld in c++ 
Cpp :: compare float values c++ 
Cpp :: how to make a n*n 2d dynamic array in c++ 
Cpp :: combination code c++ 
Cpp :: Appending a vector to a vector in C++ 
Cpp :: random number in a range c++ 
Cpp :: sort stl 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =