绝地NBA(已完结)

没错,经过本人的思考,搞出了扣篮大赛!!
不出意外,这是关于绝地NBA的最后一篇博客了。

code

#include<bits/stdc++.h> 
#include<windows.h> 
using namespace std;

string player,moshi;
int sanfen,zhongtou,neixian,neifang,waifang;

int tops,s,s1=0,s2=0;string n,m;//王朝模式 
int score=0;string huaqiudian,hqd[5]={"left-corner","left-wing","top-key","right-wing","right-corner"};//三分大赛 
int nandu;//扣篮大赛 

int Beginning()
{
	cout<<"                          绝 ";
	Sleep(300);
	cout<<"地 ";
	Sleep(300);
	cout<<"N ";
	Sleep(300);
	cout<<"B ";
	Sleep(300);
	cout<<"A ";
	Sleep(1000);
	cout<<"\n\n";
	cout<<"                        ";
	cout<<"(";
	Sleep(100);
	cout<<"点";
	Sleep(100);
	cout<<"击";
	Sleep(100);
	cout<<"回";
	Sleep(100);
	cout<<"车";
	Sleep(100);
	cout<<"以";
	Sleep(100);
	cout<<"进";
	Sleep(100);
	cout<<"入";
	Sleep(100);
	cout<<")";
	Sleep(500);
	cout<<"\n                                              ";
	cout<<"P";
	Sleep(100);
	cout<<"r";
	Sleep(100);
	cout<<"o";
	Sleep(100);
	cout<<"u";
	Sleep(100);
	cout<<"d";
	Sleep(100);
	cout<<"l";
	Sleep(100);
	cout<<"y";
	Sleep(100);
	cout<<' ';
	Sleep(100);
	cout<<"p";
	Sleep(100);
	cout<<"r";
	Sleep(100);
	cout<<"o";
	Sleep(100);
	cout<<"d";
	Sleep(100);
	cout<<"u";
	Sleep(100);
	cout<<"c";
	Sleep(100);
	cout<<"e";
	Sleep(100);
	cout<<"d";
	Sleep(100);
	cout<<' ';
	Sleep(100);
	cout<<"b";
	Sleep(100);
	cout<<"y";
	Sleep(100);
	cout<<' ';
	Sleep(100);
	cout<<"Z";
	Sleep(100);
	cout<<"i";
	Sleep(100);
	cout<<"y";
	Sleep(100);
	cout<<"a";
	Sleep(100);
	cout<<"n";
	Sleep(100);
	cout<<' ';
	Sleep(100);
	cout<<"F";
	Sleep(100);
	cout<<"a";
	Sleep(100);
	cout<<"n";
	Sleep(100);
	cout<<"g";
	Sleep(100);
}

int choose()
{
	aa:
	getchar();
	system("cls");
	
	cout<<"请从下面几位球星中选择你最喜欢的一位:\nCurry James Antetokounmpo Durant Harden Kobe Bogut\n:";
	cin>>player; 
	
	if(player!="Curry" && player!="James" && player!="Antetokounmpo" && player\
		!="Durant" && player!="Harden" && player!="Kobe" && player!="Bogut"){
			system("cls");
			cout<<"搞错了,再来!";
			Sleep(2000);
			goto aa;
	}
}

int mosh()
{
	system("cls");
	
	cout<<"请选择模式:\n\n1、王朝模式\n2、三分大赛\n3、扣篮大赛\n\n(输入序号):"; 
	cin>>moshi;
}

int wangchao()
{
	Sleep(2000);
	system("cls");
	cout<<"温馨提示:进攻状态下,按1投三分,按2投两分,按3内线,按4传球!\n";
	Sleep(3000);
	cout<<"防守状态下,按1抢断,按2盖帽,按3抢篮板!\n";
	Sleep(2000);
	cout<<"现在您可以设定比赛获胜分数:";
	cin>>tops;
	
	do{
		system("cls");
		int qiuquan=rand()%1+1;
		cout<<"双方跳球!";
		Sleep(2000);
		
		if(qiuquan<=1)
			goto jingong;
			
		else 
			goto fangshou;
		
		jingong:
		system("cls");
		cout<<"您获得了进攻权!\n";
		Sleep(2000);
		cout<<"请做出进攻选择:";
		cin>>n;
		
		if(n=="1"){
			int a=rand()%39+1; //产生1~40随机数 
				
			if(sanfen-a>65){
				s1+=3;
				cout<<player<<"三分命中!\n现在双方比分为"<<s1<<':'<<s2<<"。"; 
				Sleep(4000);
				system("cls");
				if(s1>tops)break;
				else
				goto fangshou;
			}
				
			else{
				cout<<"没有命中!\n现在双方比分为"<<s1<<':'<<s2<<"。"; 
				Sleep(4000);
				system("cls");
				if(s1>tops)break;
				else
				goto fangshou;
			}
		}
		
		if(n=="2"){
			int a=rand()%39+1;
				
			if(zhongtou-a>65){
				s1+=2;
				cout<<player<<"两分打进!\n现在双方比分为"<<s1<<':'<<s2<<"。"; 
				Sleep(4000);
				system("cls");
				if(s1>tops)break;
				else
				goto fangshou;
			}
				
			else{
				cout<<"没有命中!\n现在双方比分为"<<s1<<':'<<s2<<"。"; 
				Sleep(4000);
				system("cls");
				if(s1>tops)break;
				else
				goto fangshou;
			}
		}
		
		if(n=="3"){
			int a=rand()%39+1;
			int b=rand()%2+1;
				
			if(neixian-a>65){
				if(b<=1){
					s1+=2;
					cout<<player<<"来了一记暴扣!!全场沸腾了!!!\n现在双方比分为"<<s1<<':'<<s2<<"。"; 
					Sleep(4000);
					system("cls");
					if(s1>tops)break;
					else
					goto fangshou;
				}
				
				else{
					s1+=2;
					cout<<player<<"上篮命中!\n现在双方比分为"<<s1<<':'<<s2<<"。"; 
					Sleep(4000);
					system("cls");
					if(s1>tops)break;
					else
					goto fangshou;
				}
			}
				
			else{
				if(b<=1){
					cout<<player<<"被盖帽了!\n现在双方比分为"<<s1<<':'<<s2<<"。"; 
					Sleep(4000);
					system("cls");
					if(s1>tops)break;
					else
					goto fangshou;
				}
					
				else{
					cout<<"没有命中!\n现在双方比分为"<<s1<<':'<<s2<<"。"; 
					Sleep(4000);
					system("cls");
					if(s1>tops)break;
					else
					goto fangshou;
				}
			}
		} 
		
		if(n=="4"){
			system("cls");
			cout<<player<<"把球传给了队友!\n\n";
			Sleep(2000);
			cout<<"您希望队友做什么?(输入序号)\n1、投三分 2、投两分 3、打内线 4、回传\n:";
			cin>>m;
			
			int a=rand()%2+1;
			int b=rand()%1+1;
			
			if(m=="1"){
				if(a<=1){
					s1+=3;
					cout<<player<<"助攻队友投进三分!\n现在双方比分为"<<s1<<':'<<s2<<"。";
					Sleep(4000);
					if(s1>tops)break;
					else 
					goto fangshou;
				}
				
				else{
					cout<<"队友没能打进!\n现在双方比分为"<<s1<<':'<<s2<<"。";
					Sleep(4000);
					if(s1>tops)break;
					else 
					goto fangshou;
				}
			}
			
			if(m=="2"){
				if(b<=1){
					s1+=2;
					cout<<player<<"助攻队友两分打进!\n现在双方比分为"<<s1<<':'<<s2<<"。";
					Sleep(4000);
					if(s1>tops)break;
					else 
					goto fangshou;
				}
				
				else{
					cout<<"队友没能打进!\n现在双方比分为"<<s1<<':'<<s2<<"。";
					Sleep(4000);
					if(s1>tops)break;
					else 
					goto fangshou;
				}
			}
			
			if(m=="3"){
				if(b<=1){
					s1+=2;
					cout<<player<<"助攻飞队友!\n现在双方比分为"<<s1<<':'<<s2<<"。";
					Sleep(4000);
					if(s1>tops)break;
					else 
					goto fangshou;
				}
				
				else{
					cout<<"队友没能打进!\n现在双方比分为"<<s1<<':'<<s2<<"。";
					Sleep(4000);
					if(s1>tops)break;
					else 
					goto fangshou;
				}
			}
			
			if(m=="4"){
				cout<<"队友回传给你!";
				Sleep(4000);
				goto jingong;
			}
		}
		
		fangshou:
		system("cls");
		cout<<"改防守了!\n";
		Sleep(2000);
		int d=rand()%4+1;
		
		if(d<=2){
			cout<<"对方打算进攻内线!\n";
			Sleep(2000);
			cout<<"您打算怎么做:";
			cin>>n;
			
			if(n=="1"){
				system("cls");
				int e=rand()%39+1;
				
				if(waifang-e>70){
					cout<<"抢断成功!";
					Sleep(5000);
					
					if(s1>tops)break;
					else 
					goto jingong;
				}
				
				else{
					s2+=2;
					cout<<"对方内线命中!\n现在双方比分为"<<s1<<':'<<s2<<"。";
					Sleep(5000);
					if(s1>tops)break;
					else
					goto jingong;
				}
			} 
			
			else if(n=="2"){
				system("cls");
				int e=rand()%39+1;
				
				if(neifang-e>60){
					cout<<player<<"送给对手一记大帽!\n现在双方比分为"<<s1<<':'<<s2<<"。";
					Sleep(5000);
					if(s1>tops)break;
					else
					goto jingong;
				}
				
				else{
					s2+=2;
					cout<<"对方内线命中!\n现在双方比分为"<<s1<<':'<<s2<<"。";
					Sleep(5000);
					if(s1>tops)break;
					else
					goto jingong;
				}
			} 
		}
		
		if(d>2 && d<=3){
			cout<<"对方打算投三分!\n";
			Sleep(2000);
			cout<<"您打算怎么做:";
			cin>>n;
			
			if(n=="1"){
				system("cls");
				int e=rand()%39+1;
				
				if(waifang-e>70){
					cout<<"抢断成功!";
					Sleep(5000);
					if(s1>tops)break;
					else
					goto jingong;
				}
				
				else{
					s2+=3;
					cout<<"对方三分命中!\n现在双方比分为"<<s1<<':'<<s2<<"。";
					Sleep(5000);
					if(s1>tops)break;
					else
					goto jingong;
				}
			} 
			
			else if(n=="2"){
				system("cls");
				int e=rand()%39+1;
				
				if(neifang-e>60){
					cout<<player<<"把对方干扰了!\n现在双方比分为"<<s1<<':'<<s2<<"。";
					Sleep(5000);
					if(s1>tops)break;
					else
					goto jingong;
				}
				
				else{
					s2+=3;
					cout<<"对方三分命中!\n现在双方比分为"<<s1<<':'<<s2<<"。";
					Sleep(5000);
					if(s1>tops)break;
					else
					goto jingong;
				}
			}
		}
		
		else{
			cout<<"对方打算投中距离!\n";
			Sleep(2000);
			cout<<"您打算怎么做:";
			cin>>n;
			
			if(n=="1"){
				system("cls");
				int e=rand()%39+1;
				
				if(waifang-e>70){
					cout<<"抢断成功!";
					Sleep(5000);
					if(s1>tops)break;
					else
					goto jingong;
				}
				
				else{
					s2+=2;
					cout<<"对方投篮命中!\n现在双方比分为"<<s1<<':'<<s2<<"。";
					Sleep(5000);
					if(s1>tops)break;
					else
					goto jingong;
				}
			} 
			
			else if(n=="2"){
				system("cls");
				int e=rand()%39+1;
				
				if(neifang-e>60){
					cout<<player<<"对对方造成严重干扰!\n现在双方比分为"<<s1<<':'<<s2<<"。";
					Sleep(5000);
					if(s1>tops)break;
					else
					goto jingong;
				}
				
				else{
					s2+=2;
					cout<<"对方内线命中!\n现在双方比分为"<<s1<<':'<<s2<<"。";
					Sleep(5000);
					if(s1>tops)break;
					else
					goto jingong;
				}
			}
		}
	}while(s1<tops);
	
	if(s1>s2){
		cout<<"恭喜!您使用"<<player<<"带领球队获胜!"; 
		return 0;
	}
	
	else{
		cout<<"很遗憾!您输掉了比赛!";
		return 0; 
	}
}

int sanfendasai()
{
	qqq:
	system("cls");
	
	if(player=="Curry"){
		cout<<"Now,let's welcome one of the best shooters in NBA history~~\n";
		Sleep(3000);
		cout<<"Stephen ";
		Sleep(800);
		cout<<"Curry!";
		Sleep(3000);
	}
	
	if(player=="James"){
		cout<<"Now,let's welcome the king of the NBA League!!\n";
		Sleep(3000);
		cout<<"LeBron ";
		Sleep(800);
		cout<<"James!";
		Sleep(3000);
	}
	
	if(player=="Antetokounmpo"){
		cout<<"Now,let's welcome the Greece FRE~~AK!!\n";
		Sleep(3000);
		cout<<"Giannis ";
		Sleep(800);
		cout<<"Antetokounmpo!";
		Sleep(3000);
	}
	
	if(player=="Durant"){
		cout<<"Now,let's welcome the Thunder King in NBA!!\n";
		Sleep(3000);
		cout<<"Kevin ";
		Sleep(800);
		cout<<"Durant!";
		Sleep(3000);
	}
	
	if(player=="Harden"){
		cout<<"Now,let's welcome the best step-back player!\n";
		Sleep(3000);
		cout<<"James ";
		Sleep(800);
		cout<<"Harden!";
		Sleep(3000);
	}
	
	if(player=="Kobe"){
		cout<<"17 times NBA all star\n";
		Sleep(2000);
		cout<<"the 3rd highest score in NBA history\n";
		Sleep(2000);
		cout<<"the 2008 MVP\n";
		Sleep(2000);
		cout<<"two times NBA finals MVP\n";
		Sleep(2000);
		cout<<"five times NBA championships\n";
		Sleep(2000);
		cout<<"a 6'6 guard from lower marrien high school\n";
		Sleep(2000);
		cout<<"join in the 1996 years\n";
		Sleep(2000);
		cout<<"NO.24!\n";
		Sleep(1300);
		cout<<"Kobe ";
		Sleep(2000);
		cout<<"Bry";
		Sleep(1000);
		cout<<"ant!!!";
		Sleep(3000);
	}
	
	gg:
	system("cls");
	cout<<"您想将花球点设在什么位置?\nleft-corner left-wing top-key right-wing right-corner\n:";
	cin>>huaqiudian;
	
	if(huaqiudian!="left-corner" && huaqiudian!="left-wing" && huaqiudian!="top-key"\
	&& huaqiudian!="right-wing" && huaqiudian!="right-corner"){
		system("cls");
		cout<<"搞错了,再来!";
		Sleep(2000);
		goto gg;
	}
	
	system("cls");
	cout<<'3';Sleep(100);cout<<',';Sleep(900);
	cout<<'2';Sleep(100);cout<<',';Sleep(900);
	cout<<'1';Sleep(100);cout<<',';Sleep(900);
	cout<<"Go!\n";Sleep(500);
	int p=0;
	system("cls");
	
	if(huaqiudian=="left-corner"){
		cout<<hqd[p]<<':';
		
		for(int i=1;i<=5;++i){
			int a=rand()%39+1;
			
			if(sanfen-a>65){
				score+=2;	
				cout<<"+2 ";	
				Sleep(1500);
			}
			
			else{
				cout<<"X ";
				Sleep(1500);
			}
		}
		
		Sleep(2000);
		cout<<"\n";
		
		for(int j=1;j<=4;++j){
			for(int k=1;k<=5;++k){
				++p;
				cout<<hqd[p]<<':';
		
				for(int i=1;i<=4;++i){
					int a=rand()%44+1;
					
					if(sanfen-a>65){
						score+=1;	
						cout<<"+1 ";	
						Sleep(1500);
					}
					
					else{
						cout<<"X ";
						Sleep(1500);
					}
				}
				
				int a=rand()%44+1;
				
				if(sanfen-a>65){
					score+=1;	
					cout<<"+2 ";	
					Sleep(1500);
				}
					
				else{
					cout<<"X ";
					Sleep(1500);
				}
		
				Sleep(2000);
				cout<<"\n";
			}
		}
		
		cout<<"total score of"<<player<<':'<<score;
		Sleep(2000);
	}
	
	if(huaqiudian=="left-wing"){
		cout<<hqd[p]<<':';
		
		for(int i=1;i<=5;++i){
			int a=rand()%39+1;
			
			if(sanfen-a>65){
				score+=2;	
				cout<<"+1 ";	
				Sleep(1500);
			}
			
			else{
				cout<<"X ";
				Sleep(1500);
			}
		}
		
		
		int a=rand()%44+1;
				
		if(sanfen-a>65){
			score+=1;	
			cout<<"+2 ";	
			Sleep(1500);
		}
					
		else{
			cout<<"X ";
			Sleep(1500);
		}
		
		Sleep(2000);
		cout<<"\n";
		
		for(int i=1;i<=5;++i){
			int a=rand()%39+1;
			
			if(sanfen-a>65){
				score+=2;	
				cout<<"+2 ";	
				Sleep(1500);
			}
			
			else{
				cout<<"X ";
				Sleep(1500);
			}
		}
		
		Sleep(2000);
		cout<<"\n";
		
		for(int j=1;j<=3;++j){
			for(int k=1;k<=5;++k){
				++p;
				cout<<hqd[p]<<':';
		
				for(int i=1;i<=4;++i){
					int a=rand()%44+1;
					
					if(sanfen-a>65){
						score+=1;	
						cout<<"+1 ";	
						Sleep(1500);
					}
					
					else{
						cout<<"X ";
						Sleep(1500);
					}
				}
				
				int a=rand()%44+1;
				
				if(sanfen-a>65){
					score+=1;	
					cout<<"+2 ";	
					Sleep(1500);
				}
					
				else{
					cout<<"X ";
					Sleep(1500);
				}
		
				Sleep(2000);
				cout<<"\n";
			}
		}
		
		cout<<"total score of"<<player<<':'<<score;
		Sleep(2000);
	}
	
	if(huaqiudian=="top-key"){
		for(int i=1;i<=2;++i){
			cout<<hqd[p]<<':';
			
			for(int i=1;i<=5;++i){
				int a=rand()%39+1;
				
				if(sanfen-a>65){
					score+=2;	
					cout<<"+1 ";	
					Sleep(1500);
				}
				
				else{
					cout<<"X ";
					Sleep(1500);
				}
			}
		
		
			int a=rand()%44+1;
					
			if(sanfen-a>65){
				score+=1;	
				cout<<"+2 ";	
				Sleep(1500);
			}
						
			else{
				cout<<"X ";
				Sleep(1500);
			}
		}
		
		Sleep(2000);
		cout<<"\n";
		
		for(int i=1;i<=5;++i){
			int a=rand()%39+1;
			
			if(sanfen-a>65){
				score+=2;	
				cout<<"+2 ";	
				Sleep(1500);
			}
			
			else{
				cout<<"X ";
				Sleep(1500);
			}
		}
		
		Sleep(2000);
		cout<<"\n";
		
		for(int j=1;j<=2;++j){
			for(int k=1;k<=5;++k){
				++p;
				cout<<hqd[p]<<':';
		
				for(int i=1;i<=4;++i){
					int a=rand()%44+1;
					
					if(sanfen-a>65){
						score+=1;	
						cout<<"+1 ";	
						Sleep(1500);
					}
					
					else{
						cout<<"X ";
						Sleep(1500);
					}
				}
				
				int a=rand()%44+1;
				
				if(sanfen-a>65){
					score+=1;	
					cout<<"+2 ";	
					Sleep(1500);
				}
					
				else{
					cout<<"X ";
					Sleep(1500);
				}
		
				Sleep(2000);
				cout<<"\n";
			}
		}
		
		cout<<"total score of"<<player<<':'<<score;
		Sleep(2000);
	}
	
	if(huaqiudian=="right-wing"){
		for(int i=1;i<=3;++i){
			cout<<hqd[p]<<':';
			
			for(int i=1;i<=5;++i){
				int a=rand()%39+1;
				
				if(sanfen-a>65){
					score+=2;	
					cout<<"+1 ";	
					Sleep(1500);
				}
				
				else{
					cout<<"X ";
					Sleep(1500);
				}
			}
		
		
			int a=rand()%44+1;
					
			if(sanfen-a>65){
				score+=1;	
				cout<<"+2 ";	
				Sleep(1500);
			}
						
			else{
				cout<<"X ";
				Sleep(1500);
			}
		}
		
		Sleep(2000);
		cout<<"\n";
		
		for(int i=1;i<=5;++i){
			int a=rand()%39+1;
			
			if(sanfen-a>65){
				score+=2;	
				cout<<"+2 ";	
				Sleep(1500);
			}
			
			else{
				cout<<"X ";
				Sleep(1500);
			}
		}
		
		Sleep(2000);
		cout<<"\n";
		
		for(int j=1;j<=1;++j){
			for(int k=1;k<=5;++k){
				++p;
				cout<<hqd[p]<<':';
		
				for(int i=1;i<=4;++i){
					int a=rand()%44+1;
					
					if(sanfen-a>65){
						score+=1;	
						cout<<"+1 ";	
						Sleep(1500);
					}
					
					else{
						cout<<"X ";
						Sleep(1500);
					}
				}
				
				int a=rand()%44+1;
				
				if(sanfen-a>65){
					score+=1;	
					cout<<"+2 ";	
					Sleep(1500);
				}
					
				else{
					cout<<"X ";
					Sleep(1500);
				}
		
				Sleep(2000);
				cout<<"\n";
			}
		}
		
		cout<<"total score of"<<player<<':'<<score;
		Sleep(2000);
	}
	
	if(huaqiudian=="right-corner"){
		for(int i=1;i<=4;++i){
			cout<<hqd[p]<<':';
			
			for(int i=1;i<=5;++i){
				int a=rand()%39+1;
				
				if(sanfen-a>65){
					score+=2;	
					cout<<"+1 ";	
					Sleep(1500);
				}
				
				else{
					cout<<"X ";
					Sleep(1500);
				}
			}
		
		
			int a=rand()%44+1;
					
			if(sanfen-a>65){
				score+=1;	
				cout<<"+2 ";	
				Sleep(1500);
			}
						
			else{
				cout<<"X ";
				Sleep(1500);
			}
		}
		
		Sleep(2000);
		cout<<"\n";
		
		for(int i=1;i<=5;++i){
			int a=rand()%39+1;
			
			if(sanfen-a>65){
				score+=2;	
				cout<<"+2 ";	
				Sleep(1500);
			}
			
			else{
				cout<<"X ";
				Sleep(1500);
			}
		}
		
		cout<<"total score of"<<player<<':'<<score;
		Sleep(2000);
	}
}

int dunkslam()
{
	system("cls");
	int a=rand()%49+1;
	
	if(player=="Curry"){
		cout<<"Now,let's welcome one of the best shooters in NBA history~~\n";
		Sleep(3000);
		cout<<"Stephen ";
		Sleep(800);
		cout<<"Curry!";
		Sleep(3000);
	}
	
	if(player=="James"){
		cout<<"Now,let's welcome the king of the NBA League!!\n";
		Sleep(3000);
		cout<<"LeBron ";
		Sleep(800);
		cout<<"James!";
		Sleep(3000);
	}
	
	if(player=="Antetokounmpo"){
		cout<<"Now,let's welcome the Greece FRE~~AK!!\n";
		Sleep(3000);
		cout<<"Giannis ";
		Sleep(800);
		cout<<"Antetokounmpo!";
		Sleep(3000);
	}
	
	if(player=="Durant"){
		cout<<"Now,let's welcome the Thunder King in NBA!!\n";
		Sleep(3000);
		cout<<"Kevin ";
		Sleep(800);
		cout<<"Durant!";
		Sleep(3000);
	}
	
	if(player=="Harden"){
		cout<<"Now,let's welcome the best step-back player!\n";
		Sleep(3000);
		cout<<"James ";
		Sleep(800);
		cout<<"Harden!";
		Sleep(3000);
	}
	
	if(player=="Kobe"){
		cout<<"17 times NBA all star\n";
		Sleep(2000);
		cout<<"the 3rd highest score in NBA history\n";
		Sleep(2000);
		cout<<"the 2008 MVP\n";
		Sleep(2000);
		cout<<"two times NBA finals MVP\n";
		Sleep(2000);
		cout<<"five times NBA championships\n";
		Sleep(2000);
		cout<<"a 6'6 guard from lower marrien high school\n";
		Sleep(2000);
		cout<<"join in the 1996 years\n";
		Sleep(2000);
		cout<<"NO.24!\n";
		Sleep(1300);
		cout<<"Kobe ";
		Sleep(2000);
		cout<<"Bry";
		Sleep(1000);
		cout<<"ant!!!";
		Sleep(3000);
	}
	
	system("cls");
	cout<<"下面请欣赏球员们的精彩表演!";
	Sleep(2000);
	system("cls");
	cout<<"下面,是"<<player<<"的第一扣!";
	Sleep(1000);
	cout<<"看看他有什么惊人的表演呢?";
	Sleep(2000);
	
	aaa:
	system("cls");
	cout<<"请设置"<<player<<"本次扣篮的难度系数(0~50):";
	cin>>nandu;
	system("cls");
	
	if(nandu>=0 && nandu<=35){
		int p=rand()%10+15;
		cout<<player<<"不急不慢,看起来是很稳;\n";
		Sleep(1500);
		cout<<"不知道他有什么样的表现呢?";
		Sleep(2000);
		system("cls");
		cout<<"Duang!";
		Sleep(3000);
		system("cls");
		cout<<"。";
		Sleep(1500);
		cout<<"。";
		Sleep(1500);
		cout<<"。";
		Sleep(1500);
		cout<<"。";
		Sleep(1500);
		cout<<"。\n";
		Sleep(1500);
		cout<<"全场传来一片嘘声。\n";
		Sleep(2000);
		cout<<"这是什么吗?难道"<<player<<"是来搞笑的??";
		Sleep(2000);
		system("cls");
		cout<<"最终,评委给了"<<player<<50-p<<"分。";
		Sleep(2000);
		return 0;
	}
	
	if(nandu>=36 && nandu<=45){
		int p=rand()%5+5;
		cout<<player<<"已经蓄势待发!\n";
		Sleep(1500);
		cout<<"看来他的表现应该不错!";
		Sleep(2000);
		system("cls");
		cout<<"B";
		Sleep(200);
		cout<<"a";
		Sleep(200);
		cout<<"n";
		Sleep(200);
		cout<<"g";
		Sleep(200);
		cout<<"!";
		Sleep(200);
		Sleep(3000);
		system("cls");
		Sleep(1500);
		cout<<"哦";
		Sleep(1500);
		cout<<"!\n";
		Sleep(1500);
		cout<<"观众们看起来很吃惊,这一扣应该可以取得不错的成绩!\n";
		Sleep(2000);
		cout<<"看那,"<<player<<"正在和场下的其他队员们庆祝呢!";
		Sleep(3000);
		system("cls");
		cout<<"不错哦,评委给"<<player<<"打了"<<50-p<<"分。";
		Sleep(2000);
		
		if(50-p>42)
			goto next;
			
		else
			return 0;
	}
	
	if(nandu>=46 && nandu<=49){
		aaa1:
		int p=rand()%4+1;
		cout<<"嗬!"<<player<<"蹦了几下\n";
		Sleep(1500);
		cout<<"嘿!他正在让全场观众欢呼呢!";
		Sleep(2000);
		cout<<"这一扣一定很精彩!";
		Sleep(2000);
		system("cls");
		cout<<"D";
		Sleep(200);
		cout<<"a";
		Sleep(200);
		cout<<"n";
		Sleep(200);
		cout<<"g";
		Sleep(200);
		cout<<"!!!";
		Sleep(200);
		system("cls");
		Sleep(1500);
		
		if(neixian-a<50){
			system("cls");
			cout<<"可惜了,没扣进!";
			Sleep(2000);
			system("cls");
			goto aaa1; 
		}
		
		else{
			cout<<"wow wow wow!!";
			Sleep(1500);
			cout<<"!\n";
			Sleep(1500);
			cout<<"全场一片欢呼声,这实在是太精彩了!\n";
			Sleep(2000);
			cout<<player<<"自己都感觉到不可思议!";
			Sleep(3000);
			system("cls");
			cout<<"哦!"<<player<<"拿到了"<<50-p<<"分!!";
			Sleep(2000);
		}
		
		goto next;
	}
	
	if(nandu==50){
		aaa2:
		int p=rand()%4+1;
		cout<<"哦呦!!"<<player<<"正在热身,亲吻篮筐!!!\n";
		Sleep(3000);
		cout<<"全场炸开了锅,";
		Sleep(2000);
		cout<<"大家都非常期待"<<player<<"这位顶级扣将的精彩表演!";
		Sleep(3000);
		system("cls");
		cout<<"P";
		Sleep(200);
		cout<<"a";
		Sleep(200);
		cout<<"n";
		Sleep(200);
		cout<<"g";
		Sleep(200);
		cout<<"!!!!!";
		Sleep(200);
		system("cls");
		Sleep(500);
		
		if(neixian-a<55){
			system("cls");
			cout<<"可惜了,没扣进!";
			Sleep(2000);
			system("cls");
			goto aaa2; 
		}
		else{
			cout<<"卧槽!!";
			Sleep(1500);
			cout<<"真**的太牛*了!!!\n";
			Sleep(2000);
			cout<<"整个Staples Centre炸开了锅!不愧是联盟历史上最顶尖的扣将之一!!!\n";
			Sleep(3000);
			cout<<player<<"来了个他的专属庆祝动作!";
			Sleep(2000);
			system("cls");
			cout<<"理所当然,"<<player<<"轻取"<<50<<"分!!!";
			Sleep(2000);
		}
		
		goto next;
	}
	
	else{
		system("cls");
		cout<<"搞错了,再来!";
		Sleep(2000);
		goto aaa;
	} 
	
	next:
	system("cls");
	cout<<"恭喜"<<player<<",成功晋级第二轮!\n";
	Sleep(2000);
	cout<<"那么下面,他会带来怎样的表演呢?";
	Sleep(2000);
	
	bbb:
	system("cls");
	cout<<"请设置"<<player<<"本次扣篮的难度系数(35~50):";
	cin>>nandu;
	system("cls");
	
	if(nandu>=36 && nandu<=45){
		int p=rand()%5+5;
		cout<<player<<"再次蓄势待发!\n";
		Sleep(1500);
		cout<<"看来他应该能取得不错的名次!";
		Sleep(2000);
		system("cls");
		cout<<"B";
		Sleep(200);
		cout<<"a";
		Sleep(200);
		cout<<"n";
		Sleep(200);
		cout<<"g";
		Sleep(200);
		cout<<"!";
		Sleep(200);
		Sleep(3000);
		system("cls");
		Sleep(1500);
		cout<<"哦";
		Sleep(1500);
		cout<<"!\n";
		Sleep(1500);
		cout<<"观众们看起来很吃惊,但裁判们貌似没有为之所动!\n";
		Sleep(2000);
		cout<<"但是,"<<player<<"仍然和场下的其他队员们庆祝。";
		Sleep(3000);
		system("cls");
		cout<<"最终,评委给"<<player<<"打了"<<50-p<<"分。";
		Sleep(2000);
		cout<<"可惜了,"<<player<<"没能取得冠军!";
		return 0;
	}
	
	if(nandu>=46 && nandu<=49){
		aaa3:
		int p=rand()%4+1;
		cout<<"嗬!"<<player<<"蹦了几下\n";
		Sleep(1500);
		cout<<"嘿!他做了个聆听的动作!";
		Sleep(2000);
		cout<<"这一扣一定非常精彩!";
		Sleep(2000);
		system("cls");
		cout<<"D";
		Sleep(200);
		cout<<"a";
		Sleep(200);
		cout<<"n";
		Sleep(200);
		cout<<"g";
		Sleep(200);
		cout<<"!!!";
		Sleep(200);
		system("cls");
		Sleep(1500);
		
		if(neixian-a<50){
			system("cls");
			cout<<"可惜了,没扣进!";
			Sleep(2000);
			system("cls");
			goto aaa3; 
		}
		
		else{
			cout<<"wow wow wow!!";
			Sleep(1500);
			cout<<"!\n";
			Sleep(1500);
			cout<<"全场一片欢呼声,这实在是不可思议的一扣!\n";
			Sleep(2000);
			cout<<player<<"自己也十分兴奋!";
			Sleep(3000);
			system("cls");
			cout<<"哦!"<<player<<"拿到了"<<50-p<<"分!!";
			Sleep(2000);
		}
		
		if(50-p>=47)
			cout<<"理所当然,"<<player<<"拿下了今年的冠军!!";
		
		else
			cout<<"什么?"<<player<<"居然没有拿下了今年的冠军!";
			
		return 0; 
	}
	
	if(nandu==50){
		int p=rand()%4+1;
		cout<<"哦呦!!"<<player<<"正在热身,篮筐引体向上!!!\n";
		Sleep(3000);
		cout<<"全场沸腾了,";
		Sleep(2000);
		cout<<"大家都非常期待"<<player<<"这位顶级扣将的第二扣!";
		Sleep(3000);
		system("cls");
		aaa4:
		cout<<"P";
		Sleep(200);
		cout<<"a";
		Sleep(200);
		cout<<"n";
		Sleep(200);
		cout<<"g";
		Sleep(200);
		cout<<"!!!!!";
		Sleep(200);
		system("cls");
		Sleep(500);
		
		if(neixian-a<55){
			system("cls");
			cout<<"可惜了,没扣进!";
			Sleep(2000);
			system("cls");
			goto aaa4; 
		}
		
		else{
			cout<<"哇擦!!";
			Sleep(1500);
			cout<<"**的,这也太牛*了吧!!!\n";
			Sleep(2000);
			cout<<"整个Staples Centre再次炸开了锅!这一扣可以说前无古人!!!\n";
			Sleep(3000);
			cout<<player<<"还来了个他的专属庆祝动作!";
			Sleep(2000);
			system("cls");
			cout<<"当然啦,"<<player<<"轻取"<<50<<"分,拿下冠军!!!";
			Sleep(2000);
		}
	}
	
	else{
		system("cls");
		cout<<"搞错了,再来!";
		Sleep(2000);
		goto bbb;
	} 
}

int main() 
{
	Beginning();
	choose();
	system("cls");
	
	if(player=="Bogut"){
		cout<<"恭喜您,";
		Sleep(1000);
		cout<<"免费获得地狱入住券一张!!";
		Sleep(2000);
		
		for(int i=1;i<=25000;++i)
			cout<<"chua生 ";
			
		return 0; 
	}
	
	else{
		if(player=="Curry"){
			sanfen=99;zhongtou=95;neixian=81;neifang=70;waifang=90;
		}
			
		if(player=="James"){
			sanfen=85;zhongtou=91;neixian=95;neifang=90;waifang=85;
		}
		
		if(player=="Antetokounmpo"){
			sanfen=79;zhongtou=83;neixian=99;neifang=95;waifang=86;
		}
			
		if(player=="Durant"){
			sanfen=94;zhongtou=99;neixian=96;neifang=92;waifang=81;
		}
		
		if(player=="Harden"){
			sanfen=96;zhongtou=90;neixian=89;neifang=63;waifang=79;
		}
			
		if(player=="Kobe"){
			sanfen=88;zhongtou=99;neixian=95;neifang=82;waifang=99;
		}
		
		cout<<"球员数据:\n三分:"<<sanfen<<" 中投:"<<zhongtou<<" 内线:"<<neixian<<" 内防:"\
		<<neifang<<" 外防:"<<waifang<<"\n\n";
		Sleep(2000);
		cout<<"(";
		Sleep(100);
		cout<<"即";
		Sleep(100);
		cout<<"将";
		Sleep(100);
		cout<<"自";
		Sleep(100);
		cout<<"动";
		Sleep(100);
		cout<<"跳";
		Sleep(100);
		cout<<"转";
		Sleep(100);
		cout<<"...";
		Sleep(100);
		cout<<")";
		Sleep(1000);
	}
	
	mosh();
	
	if(moshi=="1")goto dinasty;else if(moshi=="2")goto three;else if(moshi=="3")goto dunk;
	else{
		system("cls");
		cout<<"搞错了,再来!";
		Sleep(2000);
		mosh();
	}
	
	dinasty:
		wangchao();
		
	three:
		sanfendasai();
		
	dunk:
		dunkslam();
	
	return 0;
}

大家一起努力,AK IOI!!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值