#include <iostream> using namespace std; void dengluliuzi(){ printf("%s","恭喜你你出生你了\n"); printf("%s","你好不容易出生了。。你要??拯救之前失去的一切吗??\n"); printf("%s","\n"); system("pause"); printf("%s","可能离开地府的你,留个名字吧\n"); } void xuanzezupai(){ printf("%s","你要加入??\n"); printf("%s","1.人界\n"); printf("%s","2.仙界\n"); printf("%s","3.魔界\n"); } int renjiezhuce(int a,string name){ printf("%s","恭喜你,你成了一个人\n"); printf("%s","你要加入??\n"); system("pause"); printf("%s","1.大唐官府\n"); printf("%s","2.化生寺\n"); printf("%s","3.天机城\n"); int a2; cin>>a2; if(a2==1){ printf("%s","恭喜你重生人界,开始暴揍唐太宗李世民,我亲爱的大唐官府弟子\n"); printf("%s","现在,大唐贞观元年,天下魔族肆虐,你作为一名大唐子民,应该拯救这天下,现在你应该何去何从来对抗天宫和这地府来跳出三界之中呢???\n"); }else if(a2==2){ printf("%s","\n"); cout<<"恭喜你重生人界,开始暴揍唐太宗李世民,我亲爱的化生寺弟子"<<name<<endl; printf("%s","现在,大唐贞观元年,天下魔族肆虐,你作为一名大唐子民,应该拯救这天下,现在你应该何去何从来对抗天宫和这地府来跳出三界之中呢???\n"); }else if(a2==3){ printf("%s","恭喜你重生人界,开始暴揍唐太宗李世民,我亲爱的天机城弟子\n"); printf("%s","现在,大唐贞观元年,天下魔族肆虐,你作为一名大唐子民,应该拯救这天下,现在你应该何去何从来对抗天宫和这地府来跳出三界之中呢???\n"); }else{ printf("%s","老夫要下界抓你了,你个猢狲"); renjiezhuce(a,name); } } int xianjiezhuce(int a,string name){ printf("%s","恭喜你,你没成为一个人,你只能当神仙了\n"); printf("%s","你要加入??\n"); system("pause"); printf("%s","1.五庄观\n"); printf("%s","2.普陀山\n"); printf("%s","3.花果山\n"); int a4; cin>>a4; if(a4==1){ printf("%s","恭喜你重生仙界,开始暴坑玉皇大帝,我亲爱的五庄观弟子\n"); printf("%s","现在,大唐贞观元年,天下魔族肆虐,你作为一名神族后代,要对抗魔族的同时更要防止人界的起义,你该何去何从呢???\n"); }else if(a4==2){ printf("%s","恭喜你重生仙界,开始暴坑玉皇大帝,我亲爱的普陀山弟子\n"); printf("%s","现在,大唐贞观元年,天下魔族肆虐,你作为一名神族后代,要对抗魔族的同时更要防止人界的起义,你该何去何从呢???\n"); }else if(a4==3){ printf("%s","恭喜你重生仙界,开始暴坑玉皇大帝,我亲爱的花果山弟子\n"); printf("%s","现在,大唐贞观元年,天下魔族肆虐,你作为一名神族后代,要对抗魔族的同时更要防止人界的起义,你该何去何从呢???\n"); }else{ printf("%s","老夫要下界抓你了,你个猢狲"); xianjiezhuce(a,name); } } int mojiezhuce(int a,string name){ printf("%s","恭喜你,你没成为一个人,你只能下地府了\n"); printf("%s","你要加入??\n"); system("pause"); printf("%s","1.阴曹地府\n"); printf("%s","2.无底洞\n"); printf("%s","3.魔王寨\n"); int a3; cin>>a3; if(a3==1){ printf("%s","恭喜你重生魔界,开始暴坑阎王,我亲爱的阴曹地府弟子\n"); printf("%s","现在,大唐贞观元年,天下魔族肆虐,你作为一名魔族的后代,占领神界和人界是你一生的任务,你现在是该何去何从呢???\n"); }else if(a3==2){ printf("%s","恭喜你重生魔界,开始暴坑阎王,我亲爱的无底洞弟子\n"); printf("%s","现在,大唐贞观元年,天下魔族肆虐,你作为一名魔族的后代,占领神界和人界是你一生的任务,你现在是该何去何从呢???\n"); }else if(a3==3){ printf("%s","恭喜你重生魔界,开始暴坑阎王,我亲爱的魔王寨弟子\n"); printf("%s","现在,大唐贞观元年,天下魔族肆虐,你作为一名魔族的后代,占领神界和人界是你一生的任务,你现在是该何去何从呢???\n"); }else{ printf("%s","老夫要下界抓你了,你个猢狲"); mojiezhuce(a,name); } } int main(){ system("title 重生之我在选择当不当人"); dengluliuzi(); string name; cin>>name; system("pause"); xuanzezupai(); int a; cin>>a; if(a==1){ renjiezhuce(a,name); }else if(a==2){ xianjiezhuce(a,name); }else if(a==3){ mojiezhuce(a,name); }else{ printf("%s","老夫要下界抓你了,你个猢狲,快选择!!!!!!!\n"); } return 0; }
标签:人界,name,西游,int,梦幻,else,魔族,printf From: https://www.cnblogs.com/wodefazhang/p/18636582