Search
 
SCRIPT & CODE EXAMPLE
 

CPP

c++ cout colored output xcode

//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 :: round up 2 digits float c++ 
Cpp :: c++ enum 
Cpp :: string to decimal c++ strtol 
Cpp :: prime factorisation of a number in c++ 
Cpp :: udo apt install dotnet-sdk-5 
Cpp :: c++ get char of string 
Cpp :: why we use iostream in C++ programming 
Cpp :: c++ program to reverse an array 
Cpp :: ubuntu dotnet core install 
Cpp :: 1d array 
Cpp :: c++ get character from string 
Cpp :: c++ how to read from a file 
Cpp :: std distance 
Cpp :: delete dynamic array c++ 
Cpp :: how to dynamically allocate an array c++ 
Cpp :: fast way to check if a number is prime C++ 
Cpp :: concat two vectors c++ 
Cpp :: print octal number in c++ 
Cpp :: how to find last character of string in c++ 
Cpp :: how to declare a 2D vector in c++ of size m*n with value 0 
Cpp :: selection sort c++ algorithm 
Cpp :: Bresenham line drawing opengl cpp 
Cpp :: how to empty string c++ 
Cpp :: find in vector 
Cpp :: descending order c++ 
Cpp :: print counting in c++ 
Cpp :: check if a key is in map c++ 
Cpp :: cpp auto 
Cpp :: cpp template 
Cpp :: polymorphism in c++ 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =