Answer to Question #14167 in C++ for aishwarya

Question #14167
write a c++ code for broad coloring
1
Expert's answer
2012-09-06T10:33:42-0400
#include<iostream>
#include<Windows.h>

using namespace
std;

int main()
{
for(int i=0; i<255;
i++)
{
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),
i);
cout << "Example broad coloring" <<
endl;
}
system("pause");

}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS