返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. #include<ctime>
  4. using namespace std;
  5. int main()
  6. {
  7.    re:
  8.        string a[]{"歡","迎","光","臨"};
  9.        for(int i=0; i<=3; i++)
  10.        {
  11.            cout<<a[i];
  12.            _sleep(500);
  13.            system("cls");
  14.            for(int j=0; j<=i; j++)
  15.            {
  16.                cout<<"  ";
  17.            }
  18.        }
  19.        system("cls");
  20.        for(int i=0; i<=3; i++)
  21.        {
  22.            cout<<a[i];
  23.            _sleep(500);
  24.        }
  25.        for(int i=0; i<=2; i++)
  26.        {
  27.            system("cls");
  28.            _sleep(500);
  29.            cout<<"歡迎光臨";
  30.            _sleep(500);
  31.        }
  32.        system("cls");
  33.        _sleep(500);
  34.        goto re;
  35. }
複製代碼

TOP

返回列表