#include <iostream>
using namespace std;
const std::string skyblue = "\033[36m";
const std::string purple = "\033[35m";
const std::string red = "\033[31m";
const std::string green = "\033[32m";
const std::string yellow = "\033[33m";
const std::string darkblue = "\033[34m";
const std::string reset = "\033[0m";
int main() {
cout << red << "*************************************" << reset << endl;
cout << red << "*************************************" << reset << endl;
cout<<red<<"*********"<<reset;
cout<<yellow<<"*"<<reset;
cout<<red<<"***************************"<<reset<<endl;
cout << red << "*************************************" << reset << endl;
cout<<red<<"***"<<reset;
cout<<yellow<<"*"<<reset;
cout<<red<<"********"<<reset;
cout<<yellow<<"*"<<reset;
cout<<red<<"************************"<<reset<<endl;
cout<<red<<"*"<<reset;
cout<<yellow<<"*****"<<reset;
cout<<red<<"******"<<reset;
cout<<red<<"*"<<reset;
cout<<red<<"************************"<<reset<<endl;
cout<<red<<"**"<<reset;
cout<<yellow<<"*"<<reset;
cout<<red<<"*"<<reset;
cout<<yellow<<"*"<<reset;
cout<<red<<"********************************"<<reset<<endl;
cout<<red<<"************"<<reset;
cout<<yellow<<"*"<<reset;
cout<<red<<"************************"<<reset<<endl;
cout<<red<<"*************************************"<<reset<<endl;
cout<<red<<"*********"<<reset;
cout<<yellow<<"*"<<reset;
cout<<red<<"***************************"<<reset<<endl;
cout << red << "*************************************" << reset << endl;
cout << red << "*************************************" << reset << endl;
cout<<red<<"中国奥运队"<<reset<<endl;
cout<<yellow<<"绽放在巴黎"<<reset<<endl;
cout<<skyblue<<"愿中奥队勇往直前"<<reset;
return 0;
}
如有意见,请多多指教(作者不是日本人),五星红旗比例可能不对;
违规紫衫
对了,我的代码有点繁琐,有没有更好的方法