- #include <iostream>
- #include <cstdlib>
- using namespace std;
- int main()
- { while(true)
- for(int i=0;i<13;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;
- _sleep(320);
- system("cls");
- }
- system("pause");
- return 0;
- }
複製代碼 |