Renamed 'math-helpers.hpp' to 'sign.hpp' and updated main.cpp to reflect the change
parent
3a7793bde8
commit
acf8271126
@ -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
|
Loading…
Reference in New Issue