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
|
2
main.cpp
2
main.cpp
@@ -5,7 +5,7 @@
|
|||||||
#include "includes/paddle.hpp"
|
#include "includes/paddle.hpp"
|
||||||
#include "includes/ball.hpp"
|
#include "includes/ball.hpp"
|
||||||
#include "includes/easysock.hpp"
|
#include "includes/easysock.hpp"
|
||||||
#include "includes/math-helpers.hpp"
|
#include "includes/sign.hpp"
|
||||||
#include "includes/connect-helpers.hpp"
|
#include "includes/connect-helpers.hpp"
|
||||||
#include "includes/client.hpp"
|
#include "includes/client.hpp"
|
||||||
#include "includes/server.hpp"
|
#include "includes/server.hpp"
|
||||||
|
Reference in New Issue
Block a user