返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     re:
  7.     int n=0;
  8.     for(int i=1;i<=140;i++)
  9.     {
  10.          if(i<=70)
  11.              n++;
  12.          else
  13.              n--;
  14.          for(int j=1;j<=n;j++)
  15.          {
  16.              cout<<"   ";
  17.          }
  18.          cout<<"歡迎光臨";
  19.              _sleep(300);
  20.          system("cls");
  21.     }
  22.     goto re;
  23.     system("pause");
  24.     return 0;
  25. }
複製代碼

TOP

返回列表