返回列表 發帖
本帖最後由 孫嘉駿 於 2020-1-31 20:19 編輯
  1. #include<iostream>
  2. #include<cstdlib>
  3. #include<ctime>
  4. using namespace std;
  5. int main()
  6. {
  7.     int j=50;
  8.     re:
  9.     for(int x=1; x<=13; x++)   
  10.     {
  11.     if(x==1)
  12.         cout<<"□□□□□□□□□□"<<endl;
  13.     if(x==2)
  14.         cout<<"■□□□□□□□□□"<<endl;
  15.     if(x==3)
  16.         cout<<"■■□□□□□□□□"<<endl;
  17.     if(x==4)
  18.         cout<<"■■■□□□□□□□"<<endl;
  19.     if(x==5)
  20.         cout<<"□■■■□□□□□□"<<endl;
  21.     if(x==6)
  22.         cout<<"□□■■■□□□□□"<<endl;
  23.     if(x==7)
  24.         cout<<"□□□■■■□□□□"<<endl;
  25.     if(x==8)
  26.         cout<<"□□□□■■■□□□"<<endl;
  27.     if(x==9)
  28.         cout<<"□□□□□■■■□□"<<endl;
  29.     if(x==10)
  30.         cout<<"□□□□□□■■■□"<<endl;
  31.     if(x==11)
  32.         cout<<"□□□□□□□■■■"<<endl;
  33.     if(x==12)
  34.         cout<<"□□□□□□□□■■"<<endl;
  35.     if(x==13)
  36.         cout<<"□□□□□□□□□■"<<endl;
  37.    _sleep(j);
  38.    system("cls");
  39.    }
  40.     goto re;
  41.     system("pause");
  42.     return 0;
  43. }
複製代碼

TOP

返回列表