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

TOP

返回列表