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

TOP

返回列表