Funny c++ script(windows)

This is a funny script i found.cool but VERY annoying 🙂

(btw it doesn’t harm your computer,it just flashes colors on a console.)

Code:
#include <iostream>

int main()
{   
    while(true)
    {
        system("Color 1A");
        std::cout << "ttt    Hello World" << std::endl;
        system("Color 2B");
        std::cout << "ttt    Hello World" << std::endl;
        system("Color 3C");
        std::cout << "ttt    Hello World" << std::endl;
        system("Color 4D");
        std::cout << "ttt    Hello World" << std::endl;
        system("Color 5E");
        std::cout << "ttt    Hello World" << std::endl;
        system("Color 6F");
        std::cout << "ttt    Hello World" << std::endl;
        system("Color A1");
        std::cout << "ttt    Hello World" << std::endl;
        system("Color B2");
        std::cout << "ttt    Hello World" << std::endl;
        system("Color C3");
        std::cout << "ttt    Hello World" << std::endl;
        system("Color D4");
        std::cout << "ttt    Hello World" << std::endl;
        system("Color E5");
        std::cout << "ttt    Hello World" << std::endl;
        system("Color F6");
        std::cout << "ttt    Hello World" << std::endl;
    }
    return 0;
}

YES it is using system.i didn’t understand the other one. 😛

We will be happy to hear your thoughts

Leave a reply