小编ami*_*lou的帖子

返回函数后需要休息一下吗?

这是我的代码中的一个函数:

bool same_community(string s1, string s2)//check if student 1 & student 2 are in the same community
{
for(int i=0;i<number_of_communities;i++)    
    if(community[i].contains(s1) && community[i].contains(s2))
    {
        return true;
        break;
    }
return false
}
Run Code Online (Sandbox Code Playgroud)

return true 后是否需要中断?

c++ oop

3
推荐指数
1
解决办法
3903
查看次数

标签 统计

c++ ×1

oop ×1