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

TOP

返回列表