From 6dcb50751c861b564cf4e71159596100f589662b Mon Sep 17 00:00:00 2001 From: ov075wu Date: Sat, 27 Sep 2025 19:54:37 +0200 Subject: [PATCH] refresh --- du1/program.c | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/du1/program.c b/du1/program.c index 87286c9..37d3a16 100644 --- a/du1/program.c +++ b/du1/program.c @@ -2,6 +2,7 @@ #include #include #define LINESIZE 100 +#define MAX_PIZZAS 100 struct pizza { float prize; @@ -94,5 +95,28 @@ int read_pizza (struct pizza* item) { int main() { - return 0; + char poisk[LINESIZE]; + printf("Zadaj hladanu surovinu:\n"); + fgets(poisk, sizeof(poisk), stdin); + + poisk[strcspn(poisk, "\n")] = '\0'; + + struct pizza jedalny_listok [MAX_PIZZAS]; + + int vsetky = 0; + while (vsetky