From 8dda608d073d1fd2af191f79b5c2281b46975f3c Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 2 Apr 2026 00:51:42 +0300 Subject: [PATCH] Handled case of when calculator doesn't handle numbers correctly --- input_resolver.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/input_resolver.cpp b/input_resolver.cpp index c35320c..b95e481 100644 --- a/input_resolver.cpp +++ b/input_resolver.cpp @@ -80,6 +80,10 @@ Command resolveCommand() { operation = c; } + else + { + operation = '+'; + } } return {shouldQuit, operation, validation_result.next_arg(), shouldPrint};