aa
This commit is contained in:
parent
f1c2d4bd6c
commit
7d85490b15
@ -21,11 +21,11 @@ int main(){
|
||||
int counter=0;
|
||||
char line[LINE_SIZE];
|
||||
memset(line,0,LINE_SIZE);
|
||||
printf("Zadaj hladanu surovinu:\n");
|
||||
//printf("Zadaj hladanu surovinu:\n");
|
||||
char* r = fgets(line,LINE_SIZE,stdin);
|
||||
trim(line);
|
||||
if(r != NULL && line[1] != 0){
|
||||
printf("Zadaj jedalny listok:\n");
|
||||
//printf("Zadaj jedalny listok:\n");
|
||||
struct pizza item;
|
||||
while(read_pizza(&item)){
|
||||
strcpy(jedalny_listok[counter].name, item.name);
|
||||
@ -49,7 +49,7 @@ int main(){
|
||||
}
|
||||
}
|
||||
//printf("%s",line);
|
||||
printf("Nacitanych %d poloziek.\n",counter);
|
||||
//printf("Nacitanych %d poloziek.\n",counter);
|
||||
}
|
||||
void trim(char* str){
|
||||
int i=0;
|
||||
|
BIN
cv2/program.exe
Normal file
BIN
cv2/program.exe
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user