猫史档案馆


招人………………

用户:萌新大佬萌新大佬查看: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;
}

看懂的来,看不懂看懂了再来。


回复

上一页1 页 / 共 1下一页
醉醉白凰醉醉白凰

然后最好来个endl,不然打印出来的都在一行……?

点赞0


评论


醉醉白凰醉醉白凰

#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


评论


fx已退fx已退

看懂了

点赞0


评论


fx已退fx已退

一个招人程序

点赞0


评论