返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. #include<ctime>
  4. using namespace std;
  5. int main()
  6. {
  7. re:
  8.     for(int a=1; a<=14; a++)
  9.     {
  10.         if (a==1)
  11.             cout<<"歡   "<<endl;
  12.         if (a==2)
  13.             cout<<" 迎   "<<endl;
  14.         if (a==3)
  15.             cout<<"  光 "<<endl;
  16.         if (a==4)
  17.             cout<<"   臨"<<endl;
  18.         if (a==5)
  19.             cout<<"歡   "<<endl;
  20.         if (a==6)
  21.             cout<<"歡迎  "<<endl;
  22.         if (a==7)
  23.             cout<<"歡迎光 "<<endl;
  24.         if (a==8)
  25.             cout<<"歡迎光臨"<<endl;
  26.         if (a==9)
  27.             cout<<"    "<<endl;
  28.         if (a==10)
  29.             cout<<"歡迎光臨"<<endl;
  30.         if (a==11)
  31.             cout<<"    "<<endl;
  32.         if (a==12)
  33.             cout<<"歡迎光臨"<<endl;
  34.         if (a==13)
  35.             cout<<"    "<<endl;
  36.         if (a==14)
  37.             cout<<"歡迎光臨"<<endl;

  38.         _sleep(200);
  39.         system("cls");
  40.     }
  41.     goto re;
  42.     return 0;
  43. }
複製代碼

TOP

返回列表