- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- while(true)
- {
- for(int i=0;i<=14;i++)
- {
- if(i==0)
- cout<<"歡"<<endl;
- if(i==1)
- cout<<" 迎"<<endl;
- if(i==2)
- cout<<" 光"<<endl;
- if(i==3)
- cout<<" 臨"<<endl;
- if(i==4)
- cout<<"歡"<<endl;
- if(i==5)
- cout<<"歡迎"<<endl;
- if(i==6)
- cout<<"歡迎光"<<endl;
- if(i==7)
- cout<<"歡迎光臨"<<endl;
- if(i==8)
- cout<<""<<endl;
- if(i==9)
- cout<<"歡迎光臨"<<endl;
- if(i==10)
- cout<<""<<endl;
- if(i==11)
- cout<<"歡迎光臨"<<endl;
- if(i==12)
- cout<<""<<endl;
- if(i==13)
- cout<<"歡迎光臨"<<endl;
- if(i==14)
- cout<<""<<endl;
- _sleep(420);
- system("cls");
- }
- }
- system("pause");
- return 0;
- }
複製代碼 |