自恋小程序(满足你的自恋心)
话说这应该挺简单的吧???#include<iostream>
#include<cstring>
using namespace std;
string s;
int main(){
j:
cout<<"我帅不帅(Y/N):"<<endl;
cin>>s;
if(s=="Y"){
cout<<"你人真好"<<endl;
return 0;
}else if(s=="N"){
cout<<"切,我再问你一次"<<endl;
goto j;
}else{
cout<<"按要求输入Y或者N!太不用心了!我问你"<<endl;
goto j;
}
return 0;
}
233{:10_245:}
页:
[1]