今天我太闲了,就模仿zeng9999jian做了一个百家姓。
做完感觉没啥用...............
#include<bits/stdc++.h>
using namespace std;
string a[100]={
"zeng","jiang","zhou","yan","yao",
"xu","huang","meng","pan","fang",
"zhao","qian","li","wu","zheng",
"wang","feng","chen","chu","wei",
"su","shen","han","yang","zhu","qin",
"you","he","lu","shi","zhang","kong",
"cao","hua","jin","tao","xie","zou",
"yu","bai","shui","dou","yun"
};
int main(){
string b;
cout<<"请输入姓氏的拼音,如zhou(周),";
cout<<"如果有这个姓氏,则输出true,反之则输出false"<<endl;
cout<<"因为这个只有46个姓氏,所以可能不准"<<endl;
cout<<"退出请输入“退出”"<<endl;
while(1){
cin>>b;
if(b=="退出")return 0;
bool x=true;
for(int i=0;i<42;i++){
if(a[i]==b){
x=false;
cout<<"true";
break;
}
}
if(x)
cout<<"false";
cout<<endl;
}
}
所以zeng9999jian搞得这个百家姓……基本上就是个
废物我看不过去了,他的太恐怖了,我给他升级一下
对啊……但至少你的比他的好很多……
谢谢夸奖
不来考古还不知道你骂我qwq
哈?我考古了一下,发现我给这篇帖子点的是踩草。这篇帖子的发帖时间是我仇人的生日。
所以你仇人是谁??
。这个,我没跟你说过吗。
cly ???
你为什么不开私信!!!!!!!!!!!!!!!!!!!!!!!!
a? 我没看qwq 我看看
其他啥都没有……
米兔
# 这不就一个for一个判断吗?
yes
我说的是实话
。。。。。。。
好吧,本来就没什么用
是的