前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >神兽保佑,永无bug!

神兽保佑,永无bug!

作者头像
喜欢ctrl的cxk
发布2019-11-08 17:49:10
5690
发布2019-11-08 17:49:10
举报
文章被收录于专栏:Don的成长史Don的成长史

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

本文链接:https://blog.csdn.net/weixin_42449444/article/details/85009447

写在前面:

临近考试周,我这个菜鸡除了要面对下图的各种考试,还要交C++、JAVA、数据结构的实验课期末大作业(也就是课程设计啦)。

30多天的时间,要在准备期末考试的同时,完成3个大作业,最可怕的应该就是bug了。所以我在每个大作业动笔之前动键盘之前迷信一波,先运行下这个程序,求神兽保佑永无bug。

召唤神兽的代码:

代码语言:javascript
复制
#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;
}
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2018-12-14 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 写在前面:
  • 召唤神兽的代码:
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档