返回列表 發帖
本帖最後由 曲書辰 於 2019-4-27 13:01 編輯
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int a[]={0,1,2,3,4,5,6,7,6,5,4,3,2,1,0};
  7.     re:
  8.     for(int j=0; j<15; j++)
  9.     {
  10.          for(int i=0; i<a[j]; i++)
  11.             cout<<" ";
  12.          cout<<"歡迎光臨";
  13.          _sleep(50);
  14.          system("cls");
  15.     }
  16.     goto re;   
  17.     system("pause");   
  18.     return 0;
  19. }
複製代碼

TOP

返回列表