diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Utils/Utils.hpp | 8 | ||||
| -rw-r--r-- | src/Utils/catch.cpp (renamed from src/Utils/catchInputInt.cpp) | 11 | ||||
| -rw-r--r-- | src/Utils/catchReturn.cpp | 11 |
3 files changed, 13 insertions, 17 deletions
diff --git a/src/Utils/Utils.hpp b/src/Utils/Utils.hpp index a60a64d..e977db4 100644 --- a/src/Utils/Utils.hpp +++ b/src/Utils/Utils.hpp @@ -3,9 +3,9 @@ #ifndef UTILS_HPP class Utils{ - public: - int catchInputInt(int* input); - int catchReturn(int renum); + public: + int catchInputInt(int* input); + int catchReturn(int renum); }; -#endif
\ No newline at end of file +#endif diff --git a/src/Utils/catchInputInt.cpp b/src/Utils/catch.cpp index da99833..37ebefe 100644 --- a/src/Utils/catchInputInt.cpp +++ b/src/Utils/catch.cpp @@ -1,7 +1,7 @@ #include "Utils.hpp" -#include <cstdio> #include <iostream> +#include <ostream> int Utils::catchInputInt(int* input){ std::cin >> input; @@ -12,4 +12,11 @@ int Utils::catchInputInt(int* input){ } return 0; -}
\ No newline at end of file +} + +int Utils::catchReturn(int renum){ + if (renum != 0) { + std::cout << "Received error signal, sending further" << std::endl; + } + return 0; +} diff --git a/src/Utils/catchReturn.cpp b/src/Utils/catchReturn.cpp deleted file mode 100644 index c3d6722..0000000 --- a/src/Utils/catchReturn.cpp +++ /dev/null @@ -1,11 +0,0 @@ -#include "Utils.hpp" - -#include <iostream> -#include <ostream> - -int Utils::catchReturn(int renum){ - if (renum != 0) { - std::cout << "Received error signal, sending further" << std::endl; - } - return 0; -}
\ No newline at end of file |
