#include<iostream>
#include<string>
using namespace std;
int main()
{
string a;
cout<<"要选择的英雄";
cin>>a;
if(a=="Draven")
cout<<"Welcon to the League of Draven"<<endl;
return 0;
}
运行结果:
英雄选择与游戏欢迎界面
本文介绍了一个简单的C++程序,用于实现英雄选择界面,并在选择特定英雄时提供欢迎信息。
#include<iostream>
#include<string>
using namespace std;
int main()
{
string a;
cout<<"要选择的英雄";
cin>>a;
if(a=="Draven")
cout<<"Welcon to the League of Draven"<<endl;
return 0;
}
运行结果:
1万+

被折叠的 条评论
为什么被折叠?