随笔分类 -  计算机面试

摘要:The difference between undergraudate and postgraduate? The undergraduate education provides foundational knowledge and skills in a broad discipline. T 阅读全文
posted @ 2023-09-23 12:01 Yohoc 阅读(25) 评论(0) 推荐(0) 编辑
摘要:c++中如何判断一个浮点数是否为0? 判断是否在一个误差范围内: cpp const float eps = 1e-6; if(abs(x) < eps) { // x is nearly zero } 舍入到整数再判断: cpp float x = 0.00001; if(round(x) == 阅读全文
posted @ 2023-09-23 11:46 Yohoc 阅读(25) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示