diff options
Diffstat (limited to 'src/Utils/catchInputInt.cpp')
| -rw-r--r-- | src/Utils/catchInputInt.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/Utils/catchInputInt.cpp b/src/Utils/catchInputInt.cpp deleted file mode 100644 index da99833..0000000 --- a/src/Utils/catchInputInt.cpp +++ /dev/null @@ -1,15 +0,0 @@ -#include "Utils.hpp" - -#include <cstdio> -#include <iostream> - -int Utils::catchInputInt(int* input){ - std::cin >> input; - - if (std::cin.fail()) { - std::cout << "error: Input failed" << std::endl; - return 1; - } - - return 0; -}
\ No newline at end of file |
