15 July, 2011

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 << "\t\t\t    Hello World" << std::endl;
        system("Color 2B");
        std::cout << "\t\t\t    Hello World" << std::endl;
        system("Color 3C");
        std::cout << "\t\t\t    Hello World" << std::endl;
        system("Color 4D");
        std::cout << "\t\t\t    Hello World" << std::endl;
        system("Color 5E");
        std::cout << "\t\t\t    Hello World" << std::endl;
        system("Color 6F");
        std::cout << "\t\t\t    Hello World" << std::endl;
        system("Color A1");
        std::cout << "\t\t\t    Hello World" << std::endl;
        system("Color B2");
        std::cout << "\t\t\t    Hello World" << std::endl;
        system("Color C3");
        std::cout << "\t\t\t    Hello World" << std::endl;
        system("Color D4");
        std::cout << "\t\t\t    Hello World" << std::endl;
        system("Color E5");
        std::cout << "\t\t\t    Hello World" << std::endl;
        system("Color F6");
        std::cout << "\t\t\t    Hello World" << std::endl;
    }
    return 0;
}
YES it is using system.i didn't understand the other one. :P

Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home