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