投胎模拟器1.0
Linjiachen · · 个人记录
#include <windows.h>
#include<bits/stdc++.h>
using namespace std;
map<string,string>g;
string s[10]={"猪","狗","人","牛","蟑螂","老鼠","虎","神","大便","SB"} ;
string a;
int main(){
g.clear();
srand(time(0));
system("mode 1000,800");
system("color 0a");
while(1){
int b=rand()%9;
cout<<"请输入您的名字"<<endl;
cin>>a;
if(!g[a].empty())cout<<a<<"会投胎成"<<g[a]<<endl<<endl;
else cout<<a<<"会投胎成"<<s[b+1]<<endl<<endl,g[a]=s[b+1];
}
return 0;
}