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

TOP

返回列表