Description: 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") ;
To Search:
File list (Check if you may need any files):
新建文件夹
..........\Cpp1.cpp
..........\Cpp1.dsp
..........\Cpp1.dsw
..........\Cpp1.ncb
..........\Cpp1.opt
..........\Cpp1.plg
..........\Debug
..........\.....\Cpp1.exe
..........\.....\Cpp1.ilk
..........\.....\Cpp1.obj
..........\.....\Cpp1.pch
..........\.....\Cpp1.pdb
..........\.....\vc60.idb
..........\.....\vc60.pdb