友谊代码
作者:
12345syk
,
2022-10-22 20:52:21
,
所有人可见
,
阅读 569
给我好朋友定制的~~~
#include<bits/stdc++.h>
using namespace std;
int score = 0;
void xshb_1();
void xshb_2();
void xshb_3();
void xshb_4();
void xshb_5();
void shenbo(){
string s;
int ans=0;
int jjj=1;
while(1){
printf("是否接受问卷调查?\n");
printf("print _yes_ or _no_\n");
cin>>s;
if(s == "Enter"){cout<<"问卷结束"<<endl; jjj=0;break;}
else if(s == "no"){
for(int i=1;i<=250;i++)
puts("我以申,博的力量制裁你!!! you must choose yes! ");}
else if(s == "yes"){
break;
}
else{
puts("输入错误,请重新输入"); ans++;
if(ans == 5) jjj=0;break;
}
}
if(jjj!=0){
xshb_1();
xshb_2();
xshb_3();
xshb_4();
xshb_5();
}
cout<<"你的分数是 : "<<score<<" / 100"<<endl;
}
void xshb_1(){
string x;
printf("1.申,博智商有多少?(20分)\n");
cin>>x;
if(x=="250") { cout<<"good , 中国好学生 !"<<endl; score+=20; }
if(x!="250"){
score -= 5;
for(int i=0;i<5;i++)
printf("你答错了,你失败了!约掉~~~\n");
}
}
void xshb_2(){
string y;
printf("2.你几次考试满分?(20分)\n");
cin>>y;
if(y=="100") {
score+=20;
puts("你达到了我的要求!!!");
}
else{
printf("你可以收拾东西回家了!!!!\n");
}
}
void xshb_3(){
string sb;
printf("3.你是智障吗? (20分)\n");
cin>>sb;
if(sb=="no"){
cout<<"you are wrong!!!!!"<<endl;
while(cin>>sb){
score-=1;
cout<<"you are wrong!!!!!"<<endl;
if(sb=="yes")break;
}
}
if(sb=="yes"){
cout<<"big clever~~~"<<endl;
score+=20;
}
else score-=10;
}
void xshb_4(){
string sh;
printf("4.申,博帅不帅?(yes or no)(20分)\n");
cin>>sh;
if(sh == "yes"){
score -= 10;
cout<<"shit ! you will die!"<<endl;
while(cin>>sh){
score -=3;
if(sh == "no"){
cout<<"算你识相!~~~\n";
break;
}
}
}
else if(sh == "no"){
score+=20;
cout<<"真有眼光!!!!!!\n";
}
else{
cout<<"输入有误。"<<endl;
score-=5;
}
}
void xshb_5(){
string aa;
printf("5.申,博喜欢去厕所干嘛?(20分)\n");
printf("A.吃饭 B.吃屎 C.吃老八秘制小汉堡 D.吃石yk");
cin>>aa;
if(aa == "D"){
cout<<"见鬼去吧!!!!!!!!!!"<<endl;
score-=40;
while(cin>>aa){
score-=5;
if(aa!="D"){
cout<<"放你一马~"<<endl;
break;
}
}
}
else if(aa=="A"||aa=="B"||aa=="C"){
score+=10;
printf("恭喜你答对了,你真是太聪明了!!\n");
}
else{
score-=5;
cout<<"真的不离谱......"<<endl;
}
}
int main(){
char a;
cout<<"这是一场有趣的冒险之旅(在问卷开始前请耐心地按任意字母)"<<endl;
cin>>a;
cout<<"如果你不满意"<<endl;
cin>>a;
cout<<"申,博吃屎"<<endl;
cin>>a;
puts(" ");
cin>>a;
puts("好 戏 开 始 了");
cin>>a;
puts(" ");
cin>>a;
shenbo();
return 0;
}
笑死