From f9a56612cca69948d2b04f90a06f67ae3f35e3b0 Mon Sep 17 00:00:00 2001 From: Weber Date: Sun, 29 Sep 2024 08:35:57 +0000 Subject: [PATCH] test --- cv1/program.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cv1/program.c b/cv1/program.c index b71697d..7bd13c7 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -48,10 +48,11 @@ int main() { price[strcspn(price, "\n")] = 0; decode_hacker_script(menu_item, decoded_item); - count++; // Zvyšujeme count pre každú načítanú položku + count++; + double price_value = atof(price); if (strstr(decoded_item, decoded_search) != NULL) { - printf("%s\n%.2f\n", menu_item, price); + printf("%s\n%.2f\n", menu_item, price_value); } } @@ -59,4 +60,3 @@ int main() { return 0; } -