1.改变下一个输出或输入字体和背景的颜色:
#include <windows.h>
int color(int c)
{
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),c);
return 0;//改变颜色的函数
}
1.改变下一个输出或输入字体和背景的颜色:
#include <windows.h>
int color(int c)
{
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),c);
return 0;//改变颜色的函数
}