神獸保佑,永無bug!

  • 2019 年 11 月 8 日
  • 筆記

版權聲明:本文為部落客原創文章,遵循 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;  }