用户:
萌新大佬查看:0 回复:4 评论:0 创建时间:2021-07-21T11:12:08
再次招人
#include<iostream>
using namespace std;
string a;
void come_here(void){
bool you_want_to_come_here=true;
if(you_want_to_come_here){
cout<<"do you know c++?";
string x;
cin>>x;
if(x=="yes")a="come here";
else a="learn c++ and then come here";
}
return;
}
int main(){
come_here();
cout<<a;
}
看懂的来,看不懂看懂了再来。
醉醉白凰#include<iostream>
using namespace std;
string come_here(){
string a;
string x;
bool you_want_to_come_here=true;
if(you_want_to_come_here){
cout<<"do you know c++?"<<endl;
cin>>x;
if(x=="yes")a="come here";
else a="learn c++ and then come here";
}
return a;
}
int main(){
cout<<come_here();
}
这样它不香么
点赞0
评论