返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. #include<ctime>
  4. using namespace std;
  5. int main()
  6. {
  7.     int speed=1000;
  8.         for(int x=5; x>=1; x--)
  9.         {
  10.                 if(x==5)
  11.         cout<<"5!"<<endl;
  12.                 if(x==4)
  13.         cout<<"4!"<<endl;
  14.                 if(x==3)
  15.         cout<<"3!"<<endl;
  16.                 if(x==2)
  17.         cout<<"2!"<<endl;
  18.         if(x==1)
  19.         cout<<"1!"<<endl;
  20.         _sleep(speed);
  21.         system("cls");
  22.         }
  23.         for(int y=1; y<=time(NULL); y++)
  24.         {
  25.                 cout<<"★☆★!!!新年快樂!!!★☆★"<<endl;
  26.                 _sleep(speed);
  27.                 system("cls");
  28.                 cout<<"☆★☆!!!Happy New Year!!!☆★☆"<<endl;
  29.                 _sleep(speed);
  30.                 system("cls");
  31.         }
  32.         system("pause");
  33.         return 0;       
  34. }
複製代碼

TOP

返回列表