aaaa
This commit is contained in:
parent
a8868ff748
commit
7058b65de8
@ -14,10 +14,11 @@ void trim(char* str);
|
|||||||
int search_string(const char* heap, const char* needle);
|
int search_string(const char* heap, const char* needle);
|
||||||
int read_pizza(struct pizza* item);
|
int read_pizza(struct pizza* item);
|
||||||
char hacker_script(char c);
|
char hacker_script(char c);
|
||||||
|
|
||||||
int main(){
|
int main(){
|
||||||
struct pizza jedalny_listok[POCET_JEDAL];
|
struct pizza jedalny_listok[POCET_JEDAL];
|
||||||
memset(jedalny_listok, 0,sizeof(struct pizza)*POCET_JEDAL);
|
memset(jedalny_listok, 0,sizeof(struct pizza)*POCET_JEDAL);
|
||||||
int counter;
|
int counter=0;
|
||||||
char line[LINE_SIZE];
|
char line[LINE_SIZE];
|
||||||
memset(line,0,LINE_SIZE);
|
memset(line,0,LINE_SIZE);
|
||||||
printf("Zadaj hladanu surovinu:\n");
|
printf("Zadaj hladanu surovinu:\n");
|
||||||
@ -26,7 +27,6 @@ int main(){
|
|||||||
if(r != NULL && line[1] != 0){
|
if(r != NULL && line[1] != 0){
|
||||||
printf("Zadaj jedalny listok\n");
|
printf("Zadaj jedalny listok\n");
|
||||||
struct pizza item;
|
struct pizza item;
|
||||||
counter=0;
|
|
||||||
while(read_pizza(&item)){
|
while(read_pizza(&item)){
|
||||||
strcpy(jedalny_listok[counter].name, item.name);
|
strcpy(jedalny_listok[counter].name, item.name);
|
||||||
jedalny_listok[counter].prize=item.prize;
|
jedalny_listok[counter].prize=item.prize;
|
||||||
|
BIN
cv1/program.exe
BIN
cv1/program.exe
Binary file not shown.
Loading…
Reference in New Issue
Block a user