返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     re:
  7.     for(int i=1; i<=14; 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.              _sleep(300);
  38.          system("cls");
  39.     }
  40.     goto re;
  41.     system("pause");
  42.     return 0;
  43. }
複製代碼

TOP

返回列表