返回列表 發帖
  1. #include<cstdlib>
  2. #include<iostream>
  3. using namespace std;
  4. int main()
  5. {
  6.         int y = 5;
  7.         for(int u = 0;u<5;u++)
  8.         {
  9.                 cout<<y<<"!"<<endl;
  10.                 _sleep(1000);
  11.                 y--;
  12.                 system("cls");
  13.         }
  14.         string star[3] = {"★","☆","★"};
  15.         string star1[3] = {"★","☆","★"};
  16.         re:
  17.         for(int i = 0;i<3;i++)
  18.         {
  19.                 cout<<star[i];
  20.         }
  21.         cout<<"happy new year";
  22.         for(int c = 0;c<3;c++)
  23.         {
  24.                 cout<<star1[c];
  25.         }
  26.         _sleep(1000);
  27.         string a;
  28.         a = star[0];
  29.         star[0] = star[1];
  30.         star[2] = star[1];
  31.         star[1] = a;
  32.         string b;
  33.         b = star1[0];
  34.         star1[0] = star1[1];
  35.         star1[2] = star1[1];
  36.         star1[1] = b;
  37.     system("cls");
  38.         goto re;
  39.         system("pause");
  40.         return 0;
  41. }        
複製代碼

TOP

返回列表