#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<ctime>
#include<windows.h>
using namespace std;
string name[2000];
int n;
struct I {
long long heal,att,stand,buff,baoji,lengdong,flag;
string s;
}id[2000];
void welcome(){
printf(" 学校版名字竞技场\n");
printf("几人对战?\n");cin>>n;
printf("输入名字:\n");
for(int i = 1;i <= n;i++){
cin>>name[i];
}
printf("按顺序输入战队(数字):");
for(int i = 1;i <= n;i++){
cin>>id[i].flag;
}
printf("请稍后");
}
void print() {
printf(" 学校版名字竞技场\n");
printf(" --------------------------------------------------------------------------------\n");
printf(" by floatiy\n");
for(int i = 1; i <= n; i++) {
cout <<" "<<id[i].s<<" HP:"<<id[i].heal<<" 攻击:"<<id[i].att<<" 防御:"<<id[i].stand;
cout<<" 暴击:"<<id[i].baoji<<" 冷冻:"<<id[i].lengdong<<endl;
}
cout<<endl;
printf("\n\n");
printf("请稍后.......................................................");
}
void init_longwang(string x,int num) {
if(x== "longwangboos@!") {
id[num].baoji = 0;
id[num].heal += 99999999;
id[num].lengdong = 10;
id[num].att += 500000000;
id[num].stand = 300000000;
}
}
void init_Teacher(string x,int num) {
if(x== "xiaozhangboos@!") {
id[num].baoji = 0;
id[num].heal += 400;
id[num].lengdong = 0;
id[num].att += 50;
id[num].stand = 30;
}
}
void init_hkr(string x,int num) {
if(x== "hkrboos@!") {
id[num].baoji *= 9999;
id[num].heal *= 999999;
id[num].lengdong *= 9999;
id[num].att *= 10000000;
id[num].stand *= 9999;
}
}
void init_MP5(string x,int num) {
if(x==
名字竞技场(两种版本(二))
于 2022-12-05 16:37:35 首次发布
本文深入探讨了使用C++和C语言在实现图论算法时的异同,包括语法特性、效率和内存管理等方面,并通过实例展示了两种语言在解决实际问题时的应用。
摘要由CSDN通过智能技术生成