diff options
| author | dawidg81 <dawidgorski.m@gmail.com> | 2026-01-26 21:05:46 +0100 |
|---|---|---|
| committer | dawidg81 <dawidgorski.m@gmail.com> | 2026-01-26 21:05:46 +0100 |
| commit | 4d065c1024ef88217e3de9d9cc18f20be1821c54 (patch) | |
| tree | 2ba6b56dcaa185a7e0cfeb13e68b2a2599ae0ab7 | |
| parent | 773646966b6ea0cf69bd374ca55d60a030b873bc (diff) | |
utils update
| -rw-r--r-- | src/Utils/Utils.hpp | 2 | ||||
| -rw-r--r-- | src/Utils/catchInputInt.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Utils/Utils.hpp b/src/Utils/Utils.hpp index 7df9e3d..a60a64d 100644 --- a/src/Utils/Utils.hpp +++ b/src/Utils/Utils.hpp @@ -4,7 +4,7 @@ class Utils{ public: - int catchInputInt(int input); + int catchInputInt(int* input); int catchReturn(int renum); }; diff --git a/src/Utils/catchInputInt.cpp b/src/Utils/catchInputInt.cpp index dd804b5..da99833 100644 --- a/src/Utils/catchInputInt.cpp +++ b/src/Utils/catchInputInt.cpp @@ -3,7 +3,7 @@ #include <cstdio> #include <iostream> -int Utils::catchInputInt(int input){ +int Utils::catchInputInt(int* input){ std::cin >> input; if (std::cin.fail()) { |
