代码:
#include <iostream>
#include <windows.h>int main()
{
for(int x=0; x<=15; x++){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), x);
std::cout << "Hello Word!"<< std::endl;
}
system("PAUSE");
return 0;
}
代码:
#include <iostream>
#include <windows.h>