跳到正文

个人记录

投胎模拟器1.0

Linjiachen约 1 分钟
原文
文章信息与版本

文章信息

发布
2023年5月26日
收录
2026年7月1日
更新
2026年10月26日
篇幅
约 1 分钟

版本

  1. v1当前
C++
#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;
}
原文