Programming Ideas

So it’s time to get a color console!

Source code also available here!

DOWNLOAD THE BINARY Executable FILE

#include <iostream>
#include <windows.h>  

using namespace std; 

int main()
{
    HANDLE hConsole;
    int k;
    system("TITLE ZoSoft Network");
    hConsole = GetStdHandle(STD_OUTPUT_HANDLE);

// you can loop k higher to see more color choices
for(k = 10; k < 500; k+=10)
{
    SetConsoleTextAttribute(hConsole, k);
    cout << k << "\t This is ZoSoft Network\'s C++ Console Color Demonstration!      " << endl;
}

cin.get(); // wait
return 0;
}

Leave a Reply

Link Exchange
Advertisement
Get one year License for Avast FREE ! Go to Avast Official Site to download and get the License
About Me
I am a Master of Computer Application (MCA) degree holder. I am also qualified UGC-NET Lecturership in Computer Science & Application.

I am available for Freelancing.

Expert in :
  1. C# Programming (Desktop & Web)
  2. VB.NET Programming (Desktop & Web)
  3. PHP Web Designing + CSS3
  4. SQL Administration
  5. Ethical Hacking
Site Estimated Cost
zosoftnet.com website worth badge