summaryrefslogtreecommitdiff
path: root/src/Utils/catchInputInt.cpp
diff options
context:
space:
mode:
authordawidg81 <dawidgorski.m@gmail.com>2026-01-27 19:19:30 +0100
committerdawidg81 <dawidgorski.m@gmail.com>2026-01-27 19:19:30 +0100
commitf34e07b4962f65362afa5ca98759e87929d964bc (patch)
treed3df203e017542634f39962c052bdf18f7d07617 /src/Utils/catchInputInt.cpp
parent4d065c1024ef88217e3de9d9cc18f20be1821c54 (diff)
file node
Diffstat (limited to 'src/Utils/catchInputInt.cpp')
-rw-r--r--src/Utils/catchInputInt.cpp15
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