摘要: 一、常量&约定 为了方便地比较浮点数,我们需要设计一个三态比较函数,如下。 #define IL inline const double pi=acos(-1.0); const double eps=1e-8; IL int sign(double x){ if(fabs(x)<eps)retur 阅读全文
posted @ 2021-05-31 15:01 Robert_JYH 阅读(106) 评论(1) 推荐(0) 编辑