日志4完全平方数判断
bool wan(int b){
int root = static_cast<int>(sqrt(b));
return root * root == b;
}
static_cast<类别>(变量)类型转换操作符
int root = static_cast<int>(sqrt(b));
return root * root == b;
}
static_cast<类别>(变量)类型转换操作符
全部评论
相关推荐
06-03 03:20
河北农业大学 人力资源专员/助理 点赞 评论 收藏
分享