diff --git a/cv1/program.c b/cv1/program.c index 8baff2e..11be368 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -1,5 +1,44 @@ #include +#include +#define LINESIZE 100 + +struct Pizza { + float prize; + char name[LINESIZE]; + }; + +int nacitaj(struct Pizza* polozka){ + return 0; + } + +int matches(heap, needle){ + return 0; + +} +char r[LINESIZE]; +char hacker_script(char c){ + if (c == '5'){ + r == 'S'; + } + return r; +} int main (){ -return 0; + char search_string[LINESIZE] = "Ostiepkova"; + while(1){ + char *r = fgets(line, LINESIZE, stdin); + if (r == NULL){ + break; + } + struct Pizza pizza; + memset(line, 0, sizeof(struct Pizza)); + strcpy(pizz->name, line); + if (matches(search_string, line)){ + printf("%s", pizza->name) + } + + } + + + return 0; }