c中改变颜色的函数

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

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/mantou_riji/article/details/107060721