error C3861: 'round': identifier not found

来源:互联网 发布:名字作诗软件 编辑:程序博客网 时间:2024/05/20 17:27

本文转载自http://blog.csdn.net/hua_007/article/details/10931035

error C3861: 'round': identifier not found

 There is no round function in <cmath> for windows. Instead, you have to implement it yourself. This is rather easy, however:

C++ Syntax (Toggle Plain Text)
  1. inline double round( double d )
  2. {
  3. return floor( d + 0.5 );
  4. }
原创粉丝点击