Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

print colored text in c++

// C++ program to illustrate coloring
#include <iostream>
#include <windows.h>
using namespace std;
  
// Driver Code
int main()
{
    // 0 for background Color(Black)
    // A for text color(Green)
    system("Color 0A");
  
    // Print any message
    cout << "Geeks For Geeks!";
    return 0;
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #print #colored #text
ADD COMMENT
Topic
Name
3+8 =