From cb5ad765a140b4c7451940b83f1116af2aad6017 Mon Sep 17 00:00:00 2001 From: starnakin Date: Wed, 11 Oct 2023 18:58:22 +0000 Subject: [PATCH] clean --- src/utils.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils.cpp b/src/utils.cpp index 795f8a3..0a42f20 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -4,6 +4,8 @@ #include #include +#include "config.h" + static float get_price(std::string& str) { @@ -24,7 +26,7 @@ static float get_price(std::string& str) } return 0; } -// pain 2€ 1 + static int get_quantity(std::string& str) { unsigned int quantity = 0; @@ -32,7 +34,6 @@ static int get_quantity(std::string& str) for (i = 0; i != str.size(); i++) { - std::cout << str[i] << std::endl; if (!std::isdigit(str[i])) { if (quantity != 0)