阅读背景:

c++之改变终端输出的颜色

来源:互联网 

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



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: