- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- int speed=50;
- re:
- for(int i=1; i<=13; i++)
- {
- if(x==1)
- cout<<"□□□□□□□□□□"<<endl;
- if(x==2)
- cout<<"■□□□□□□□□□"<<endl;
- if(x==3)
- cout<<"■■□□□□□□□□"<<endl;
- if(x==4)
- cout<<"■■■□□□□□□□"<<endl;
- if(x==5)
- cout<<"□■■■□□□□□□"<<endl;
- if(x==6)
- cout<<"□□■■■□□□□□"<<endl;
- if(x==7)
- cout<<"□□□■■■□□□□"<<endl;
- if(x==8)
- cout<<"□□□□■■■□□□"<<endl;
- if(x==9)
- cout<<"□□□□□■■■□□"<<endl;
- if(x==10)
- cout<<"□□□□□□■■■□"<<endl;
- if(x==11)
- cout<<"□□□□□□□■■■"<<endl;
- if(x==12)
- cout<<"□□□□□□□□■■"<<endl;
- if(x==13)
- cout<<"□□□□□□□□□■"<<endl;
- _sleep(speed);
- system("cls");
- }
- goto re;
- system("pause");
- return 0;
- }
複製代碼 |