- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- using namespace std;
- int main()
- {
- int speed=1000;
- for(int c=5; c>=1;c--)
- {
- if(c==5)
- cout<<"5!";
- if(c==4)
- cout<<"4!";
- if(c==3)
- cout<<"3!";
- if(c==2)
- cout<<"2!";
- if(c==1)
- cout<<"1!";
- _sleep(speed);
- system("cls");
- }
- for(int a=1; a<=time(NULL); a++)
- {
- cout<<"☆★☆!!!新年快樂!!!☆★☆";
- _sleep(speed);
- system("cls");
- cout<<"★☆★!!!新年快樂!!!★☆★";
- _sleep(speed);
- system("cls");
- }
- system("pause");
- return 0;
- }
複製代碼 |