Yuck Xerath.
Write a function not a macro.
Code:int round_it(int d) { return std::floor(d+0.5); }
Yuck Xerath.
Write a function not a macro.
Code:int round_it(int d) { return std::floor(d+0.5); }
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi