c++之改变终端输出的颜色
#include <iostream>
int main(int argc, char** argv)
{
std::cout << "3[0;30m This is black color text ! 3[0m" << std::endl;
std::cout << "3[0;31m This is red color text ! 3[0m" << std::endl;
std::cout << "3[0;32m This is green color text ! 3[0m" << std::endl;
std::cout << "3[0;33m This is orang color text ! 3[0m" << std::endl;
std::cout << "3[0;34m This is blue color text ! 3[0m" << std::endl;
std::cout << "3[0;35m This is purple color text ! 3[0m" << std::endl;
std::cout << "3[0;36m This is cyan color text ! 3[0m" << std::endl;
std::cout << "3[0;37m This is light gray color text ! 3[0m" << std::endl;
return 0;
}#include <iostream>
int main(in