Renamed 'math-helpers.hpp' to 'sign.hpp' and updated main.cpp to reflect the change
This commit is contained in:
8
includes/sign.hpp
Normal file
8
includes/sign.hpp
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef _MATH_HELP
|
||||
#define _MATH_HELP
|
||||
int signum(int num) {
|
||||
int retval = 0;
|
||||
(num > 0) ? retval = 1 : retval = -1;
|
||||
return retval;
|
||||
}
|
||||
#endif
|
Reference in New Issue
Block a user