版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/weixin_42449444/article/details/85009447
临近考试周,我这个菜鸡除了要面对下图的各种考试,还要交C++、JAVA、数据结构的实验课期末大作业(也就是课程设计啦)。
30多天的时间,要在准备期末考试的同时,完成3个大作业,最可怕的应该就是bug了。所以我在每个大作业动笔之前动键盘之前迷信一波,先运行下这个程序,求神兽保佑永无bug。
#include <bits/stdc++.h>
using namespace std;
int main()
{
string str0 = "┌─┐";
string str1 = "┌──┘";
string str2 = "┴───────┘";
string str3 = "┴──┐";
string str4 = "│";
string str5 = "──";
string str6 = "─┬┘";
string str7 = "└┬─";
string str8 = "─┴─";
string str9 = "└───┐";
string str10 = "┌───┘";
string str11 = "└──────────────┐";
string str12 = "├─┐";
string str13 = "┌─┘ ";
string str14 = "└─┐";
string str15 = "┐";
string str16 = "┌───────┬──┐";
string str17 = "┌──┘";
string str18 = "┤";
string str19 = "└──┴──┘";
cout << setw(31) << str0 << setw(13) << str0 << endl;
cout <<setw(30)<< str1 <<setw(19)<<str2<<setw(9)<<str3<< endl;
cout << setw(24) << str4 <<setw(19)<<str4<< endl;
cout << setw(24) << str4 << setw(11) <<str5<<setw(10)<< str4 << endl;
cout << setw(24) << str4 << setw(19) << str4 << endl;
cout << setw(24) << str4 << setw(9) << str6 << setw(11) << str7 << setw(5) << str4 << endl;
cout << setw(24) << str4 << setw(19) << str4 << endl;
cout << setw(24) << str4 << setw(19) << str4 << endl;
cout << setw(24) << str4 << setw(13) << str8 <<setw(9)<<str4<< endl;
cout << setw(24) << str4 << setw(19) << str4 << endl;
cout << setw(32) << str9 << setw(19)<< str10 << endl;
cout << setw(28) << str4 << setw(11) << str4 << endl;
cout << setw(28) << str4 << setw(11) << str4 << endl;
cout << setw(28) << str4 << setw(11) << str4 << endl;
cout << setw(28) << str4 << setw(11) << str4 << endl;
cout << setw(28) << str4 << setw(41) << str11 << endl;
cout << setw(28) << str4 << setw(26) << str4 << endl;
cout << setw(28) << str4 << setw(30) << str12 << endl;
cout << setw(28) << str4 << setw(32) << str13 << endl;
cout << setw(28) << str4 << setw(26) << str4 << endl;
cout << setw(32) << str14 <<setw(4)<<str15<<setw(26)<<str16<<setw(10)<<str17<< endl;
cout << setw(30) << str4 <<setw(4)<<str18<<setw(4)<<str18<<setw(9)<<str4<<setw(4)<<str18
<<setw(4)<<str18<< endl;
cout << setw(42) << str19 <<setw(21)<<str19<< endl;
cout << " " << endl;
cout << setw(43) << "神兽保佑"<<endl;
cout << " " << endl;
cout << setw(43) << "永无bug!" << endl;
system("pause");
return 0;
}