正确例题
#include
using namespace std;
int main()
{
cout << “\033[30;31;4m” << “■■” << “\033[0m” << endl;
cout << “\033[30;32;4m” << “■■” << “\033[0m” << endl;
cout << “\033[30;33;4m” << “■■” << “\033[0m” << endl;
cout << “\033[30;34;4m” << “■■” << “\033[0m” << endl;
cout << “\033[30;35;4m” << “■■” << “\033[0m” << endl;
cout << “\033[30;36;4m” << “■■” << “\033[0m” << endl;
cout << “\033[30;37;4m” << “■■” << “\033[0m” << endl;
cout << “\033[30;38;4m” << “■■” << “\033[0m” << endl;
return 0;
}
C++输出各种颜色代码
最新推荐文章于 2024-07-16 18:00:34 发布