Introduction - If you have any usage issues, please Google them yourself
SetColor(unsigned short ForeColor,unsigned short BackGroundColor) //颜色函数 { HANDLE hCon=GetStdHandle(STD_OUTPUT_HANDLE) SetConsoleTextAttribute(hCon,(ForeColor 16)|(BackGroundColor 16*16)) } 调用函数 SetColor(11,8) cout<<endl<<"文本内容结束!"<<endl SetColor(7,0) system("color xy") ;