-
Notifications
You must be signed in to change notification settings - Fork 0
CPP
Gaurav Walia edited this page Oct 4, 2018
·
4 revisions
git clone https://github.com/GauravWalia19/RAINBOW.git
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
}
g++ hello.cpp -o hello.out
./hello.out