循环火箭代码

huzhehan 2023-01-05 8:27:25 2023-12-01 20:00:51 3
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main () {
	int s=10char a='*';
	for(int i=10;i>=0;i--){
		cout<<i;
		Sleep(1000);
		system("cls");
	} 
	cout<<"fire";
	Sleep(300);
 	system("cls");
	//计时 
	while(s==s){
		cout<<endl<<endl<<"    "<<a<<endl;
 	cout<<"   "<<a<<' '<<a<<endl;
 	for(int i=10;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a;

	Sleep(s);
 	system("cls");
 	//1 
 	cout<<endl<<"    "<<a<<endl;
 	cout<<"   "<<a<<' '<<a<<endl;
 	for(int i=10;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; 
	Sleep(s);
 	system("cls");
 	//2 
 	cout<<"    "<<a<<endl;
 	cout<<"   "<<a<<' '<<a<<endl;
 	for(int i=10;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; 
	Sleep(s);
 	system("cls");
 	//3
 	cout<<"   "<<a<<' '<<a<<endl;
 	for(int i=10;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; 
	Sleep(s);
 	system("cls"); 
 	//4
 	for(int i=10;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; 
	Sleep(s);
 	system("cls"); 
 	//5 
 	for(int i=9;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; 
	Sleep(s);
 	system("cls"); 
 	//6 
 	for(int i=8;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; 
	Sleep(s);
 	system("cls"); 
 	//7 
 	for(int i=7;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; 
	Sleep(s);
 	system("cls");
 	//8
 	for(int i=6;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; 
	Sleep(s);
 	system("cls");
 	//9
 	for(int i=5;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; 
	Sleep(s);
 	system("cls");
 	//10
 	for(int i=4;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; 
	Sleep(s);
 	system("cls");
 	//11
 	for(int i=3;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; 
	Sleep(s);
 	system("cls");
 	//12
 	for(int i=2;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; 
	Sleep(s);
 	system("cls");
 	//13
 	for(int i=1;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; 
	Sleep(s);
 	system("cls");
 	//14
	cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; 
	Sleep(s);
 	system("cls");
 	//15
 	cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<"    "<<a<<endl;
 	cout<<"   "<<a<<' '<<a<<endl;
 	for(int i=5;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	Sleep(s);
 	system("cls");
 	//new1 
 	cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<"    "<<a<<endl;
 	cout<<"   "<<a<<' '<<a<<endl;
 	for(int i=6;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	Sleep(s);
 	system("cls");
 	//new2 
 	cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<"    "<<a<<endl;
 	cout<<"   "<<a<<' '<<a<<endl;
 	for(int i=7;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	Sleep(s);
 	system("cls");
 	//new3
 	cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<"    "<<a<<endl;
 	cout<<"   "<<a<<' '<<a<<endl;
 	for(int i=8;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	Sleep(s);
 	system("cls");
 	//new4
 	cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<"    "<<a<<endl;
 	cout<<"   "<<a<<' '<<a<<endl;
 	for(int i=9;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	Sleep(s);
 	system("cls");
 	//new5
 	cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<"    "<<a<<endl;
 	cout<<"   "<<a<<' '<<a<<endl;
 	for(int i=10;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	Sleep(s);
 	system("cls");
 	//new6
 	cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<"    "<<a<<endl;
 	cout<<"   "<<a<<' '<<a<<endl;
 	for(int i=10;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a;
	Sleep(s);
 	system("cls");
 	//new7
 	cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<"    "<<a<<endl;
 	cout<<"   "<<a<<' '<<a<<endl;
 	for(int i=10;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a;
	Sleep(s);
 	system("cls");
 	//new8
 	cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<"    "<<a<<endl;
 	cout<<"   "<<a<<' '<<a<<endl;
 	for(int i=10;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a;
	Sleep(s);
 	system("cls");
 	//new9
 	cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<"    "<<a<<endl;
 	cout<<"   "<<a<<' '<<a<<endl;
 	for(int i=10;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a;
	Sleep(s);
 	system("cls");
 	//new10
 	cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<"    "<<a<<endl;
 	cout<<"   "<<a<<' '<<a<<endl;
 	for(int i=10;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a;
	Sleep(s);
 	system("cls");
 	//new11
 	cout<<endl<<endl<<endl<<endl<<endl<<endl<<"    "<<a<<endl;
 	cout<<"   "<<a<<' '<<a<<endl;
 	for(int i=10;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a;
	Sleep(s);
 	system("cls");
 	//new12
 	cout<<endl<<endl<<endl<<endl<<endl<<"    "<<a<<endl;
 	cout<<"   "<<a<<' '<<a<<endl;
 	for(int i=10;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a;
	Sleep(s);
 	system("cls");
 	//new13
 	cout<<endl<<endl<<endl<<endl<<"    "<<a<<endl;
 	cout<<"   "<<a<<' '<<a<<endl;
 	for(int i=10;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a;
	Sleep(s);
 	system("cls");
 	//new14
 	cout<<endl<<endl<<endl<<"    "<<a<<endl;
 	cout<<"   "<<a<<' '<<a<<endl;
 	for(int i=10;i>=0;i--){
 		cout<<"  "<<a<<a<<a<<a<<a<<endl;
	}
	cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a;
	Sleep(s);
 	system("cls");
 	//new15
}
		return 0;
	}
{{ vote && vote.total.up }}

共 6 条回复

tctm103
#include<bits/stdc++.h> #include<windows.h> using namespace std; int main () { int s=10; char a='*'; for (int i=10;i>=0;i--){ cout<<i; Sleep (1000); system ("cls"); } cout<<"fire"; Sleep (300); system ("cls"); // 计时 while (s==s){ cout<<endl<<endl<<" "<<a<<endl; cout<<" "<<a<<' '<<a<<endl; for (int i=10;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; Sleep (s); system ("cls"); //1 cout<<endl<<" "<<a<<endl; cout<<" "<<a<<' '<<a<<endl; for (int i=10;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; Sleep (s); system ("cls"); //2 cout<<" "<<a<<endl; cout<<" "<<a<<' '<<a<<endl; for (int i=10;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; Sleep (s); system ("cls"); //3 cout<<" "<<a<<' '<<a<<endl; for (int i=10;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; Sleep (s); system ("cls"); //4 for (int i=10;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; Sleep (s); system ("cls"); //5 for (int i=9;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; Sleep (s); system ("cls"); //6 for (int i=8;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; Sleep (s); system ("cls"); //7 for (int i=7;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; Sleep (s); system ("cls"); //8 for (int i=6;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; Sleep (s); system ("cls"); //9 for (int i=5;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; Sleep (s); system ("cls"); //10 for (int i=4;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; Sleep (s); system ("cls"); //11 for (int i=3;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; Sleep (s); system ("cls"); //12 for (int i=2;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; Sleep (s); system ("cls"); //13 for (int i=1;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; Sleep (s); system ("cls"); //14 cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; Sleep (s); system ("cls"); //15 cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<" "<<a<<endl; cout<<" "<<a<<' '<<a<<endl; for (int i=5;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } Sleep (s); system ("cls"); //new1 cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<" "<<a<<endl; cout<<" "<<a<<' '<<a<<endl; for (int i=6;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } Sleep (s); system ("cls"); //new2 cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<" "<<a<<endl; cout<<" "<<a<<' '<<a<<endl; for (int i=7;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } Sleep (s); system ("cls"); //new3 cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<" "<<a<<endl; cout<<" "<<a<<' '<<a<<endl; for (int i=8;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } Sleep (s); system ("cls"); //new4 cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<" "<<a<<endl; cout<<" "<<a<<' '<<a<<endl; for (int i=9;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } Sleep (s); system ("cls"); //new5 cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<" "<<a<<endl; cout<<" "<<a<<' '<<a<<endl; for (int i=10;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } Sleep (s); system ("cls"); //new6 cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<" "<<a<<endl; cout<<" "<<a<<' '<<a<<endl; for (int i=10;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; Sleep (s); system ("cls"); //new7 cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<" "<<a<<endl; cout<<" "<<a<<' '<<a<<endl; for (int i=10;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; Sleep (s); system ("cls"); //new8 cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<" "<<a<<endl; cout<<" "<<a<<' '<<a<<endl; for (int i=10;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; Sleep (s); system ("cls"); //new9 cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<" "<<a<<endl; cout<<" "<<a<<' '<<a<<endl; for (int i=10;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; Sleep (s); system ("cls"); //new10 cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<" "<<a<<endl; cout<<" "<<a<<' '<<a<<endl; for (int i=10;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; Sleep (s); system ("cls"); //new11 cout<<endl<<endl<<endl<<endl<<endl<<endl<<" "<<a<<endl; cout<<" "<<a<<' '<<a<<endl; for (int i=10;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; Sleep (s); system ("cls"); //new12 cout<<endl<<endl<<endl<<endl<<endl<<" "<<a<<endl; cout<<" "<<a<<' '<<a<<endl; for (int i=10;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; Sleep (s); system ("cls"); //new13 cout<<endl<<endl<<endl<<endl<<" "<<a<<endl; cout<<" "<<a<<' '<<a<<endl; for (int i=10;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; Sleep (s); system ("cls"); //new14 cout<<endl<<endl<<endl<<" "<<a<<endl; cout<<" "<<a<<' '<<a<<endl; for (int i=10;i>=0;i--){ cout<<" "<<a<<a<<a<<a<<a<<endl; } cout<<a<<' '<<a<<' '<<a<<' '<<a<<' '<<a; Sleep (s); system ("cls"); //new15 } return 0; }
root 站长
```cpp
   你的代码
```
lyzlq

感觉这代码有点点口吃

huzhehan

应该要用Enter

Eil5

······

tctm92 坤坤侠

怎么拍板呀