- #include<cstdlib>
- #include<iostream>
- using namespace std;
- int main()
- {
- int y = 5;
- for(int u = 0;u<5;u++)
- {
- cout<<y<<"!"<<endl;
- _sleep(1000);
- y--;
- system("cls");
- }
- string star[3] = {"★","☆","★"};
- string star1[3] = {"★","☆","★"};
- re:
- for(int i = 0;i<3;i++)
- {
- cout<<star[i];
- }
- cout<<"happy new year";
- for(int c = 0;c<3;c++)
- {
- cout<<star1[c];
- }
- _sleep(1000);
- string a;
- a = star[0];
- star[0] = star[1];
- star[2] = star[1];
- star[1] = a;
- string b;
- b = star1[0];
- star1[0] = star1[1];
- star1[2] = star1[1];
- star1[1] = b;
- system("cls");
- goto re;
- system("pause");
- return 0;
- }
複製代碼 |