能不能用C语言写出闪闪发光的代码,并且在VC6.0下运行
能不能用C语言写出闪闪发光的代码,并且在VC6.0下运行
程序代码:#include <stdio.h>
#include <windows.h>
int main(void)
{
HANDLE consolehwnd = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(consolehwnd, FOREGROUND_RED);
printf("hello ");
SetConsoleTextAttribute(consolehwnd, FOREGROUND_INTENSITY | FOREGROUND_GREEN);
printf("world!\n");
getchar();
SetConsoleTextAttribute(consolehwnd, BACKGROUND_INTENSITY | BACKGROUND_BLUE);
printf("It is really beautiful!\n");
return 0;
}
