CPP - GauravWalia19/RAINBOW GitHub Wiki

☁️ USAGE IN C++ (:octocat: LINUX / MAC :octocat:)

1. Download ZIP or clone the repository using

 git clone https://github.com/GauravWalia19/RAINBOW.git

2. Navigate to download or cloning place folder. Open terminal and follow commands

cd ~
cd Downloads
cd RAINBOW-master || cd RAINBOW
cd src/C++
bash cpp.sh

3. If U want to use in your code than create a file with extension of cpp (hello.cpp) there. Write the code given below

Terminal

touch hello.cpp

Open file hello.cpp in Text Editor and write code given below:

#include "rainbow.hpp"
#include <iostream>
using namespace std;
int main()
{
   cout << GREEN << "This is a green color"; //this will print green color text
}

4. Compile and run using commands

g++ hello.cpp -o hello.out
./hello.out
⚠️ **GitHub.com Fallback** ⚠️