http://blog.csdn.net/exlsunshine/article/details/28440889
#include <iostream>
#include <Windows.h> //需要引用Windows.h
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
HANDLE hConsole;
hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
for(int i=255;i>=0;i--)
{
SetConsoleTextAttribute(hConsole, i);
cout<<"what color is this?"<<endl;
}
cin.get();
return 0;
}