error C3861: 'round': identifier not found

error C3861: 'round': identifier not found

 There is no round function in 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. }

你可能感兴趣的:(计算机的灵魂)