How to call ceil function in c++ from my classes's ceil function -


i need delegate 'ceil' function. class has method 'ceil', need return cpp's native method 'ceil'. how call it?

double ceil() { return ceil(); } 

- recursion

double ceil() {     return ::ceil(something); // ceil has argument } 

of course, above when define method inside class definition; following when define method outside class:

double myclass::ceil() {     return ::ceil(something); } 

and comment suggests, using std::ceil included <cmath> better, because indeed, ::ceil not guaranteed ceil c library.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -