第一种
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
struct note{
char a[105];
int hp;
int gj;
};
int s;
note player[100];
int hit1,hit2,k,g[11],pdh1=0,pdh2=0,n;
void shuru();
void gj();
void youxi();
void slowsay(char a[]){
for(int i=0;i<strlen(a);i++){
cout<<a[i];
Sleep(25);
}
}
int main(){
srand((unsigned)time(NULL));
slowsay("欢迎来到名字竞技场 by Steve_bm");
cout<<endl;
slowsay("V 1.2");
cout<<endl;
cout<<"请输入人数:";
cout<<"人数不能小于2!"<<endl;
cin>>n;
shuru();
youxi();
return 0;
}
void gj(){
int op1,op2;
op1=rand()%n+1;
op2=rand()%n+1;
if((op1==op2)||(player[op1].hp==<