1 Star 0 Fork 2

ZnPdCo/ColorfulConsoleIO

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ColorfulConsoleIO.cpp 1.74 KB
一键复制 编辑 原始数据 按行查看 历史
ZnPdCo 提交于 2023-08-07 13:37 . update ColorfulConsoleIO.cpp.
#include "ColorfulConsoleIO.hpp"
using std::endl;
int main()
{
std::wcout << ConsoleColor::Green<< L"Green" << endl;
std::wcout << ConsoleColor::Red << L"Red" << endl;
std::wcout << ConsoleColor::Blue << L"Blue" << endl;
std::wcout << ConsoleColor::White << L"White" << endl;
std::wcout << ConsoleColor::Black << L"Black" << endl;
std::wcout << ConsoleColor::Purple << L"Purple" << endl;
std::wcout << ConsoleColor::Yellow << L"Yellow" << endl;
std::wcout << ConsoleColor::Cyan << L"Cyan" << endl;
std::wcout << ConsoleColor::GreenIntensity << L"GreenIntensity" << endl;
std::wcout << ConsoleColor::RedIntensity << L"RedIntensity" << endl;
std::wcout << ConsoleColor::BlueIntensity << L"BlueIntensity" << endl;
std::wcout << ConsoleColor::WhiteIntensity << L"WhiteIntensity" << endl;
std::wcout << ConsoleColor::BlackIntensity << L"BlackIntensity" << endl;
std::wcout << ConsoleColor::PurpleIntensity << L"PurpleIntensity" << endl;
std::wcout << ConsoleColor::YellowIntensity << L"YellowIntensity" << endl;
std::wcout << ConsoleColor::CyanIntensity << L"CyanIntensity" << endl;
std::wcout << ConsoleBackgroundColor::Green << L"Green" << endl;
std::wcout << ConsoleBackgroundColor::Red << L"Red" << endl;
std::wcout << ConsoleBackgroundColor::Blue << L"Blue" << endl;
std::wcout << ConsoleBackgroundColor::Black << L"Black" << endl;
std::wcout << ConsoleBackgroundColor::White << L"White" << endl;
std::wcout << ConsoleBackgroundColor::Purple << L"Purple" << endl;
std::wcout << ConsoleBackgroundColor::Yellow << L"Yellow" << endl;
std::wcout << ConsoleBackgroundColor::Cyan << L"Cyan" << endl;
std::wcout << ConsoleBackgroundColor::None;
std::wcout << ConsoleColor::None;
_wsystem(L"pause");
return 0;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/znpdco/ColorfulConsoleIO.git
git@gitee.com:znpdco/ColorfulConsoleIO.git
znpdco
ColorfulConsoleIO
ColorfulConsoleIO
master

搜索帮助