aa
This commit is contained in:
parent
f1c2d4bd6c
commit
7d85490b15
@ -21,11 +21,11 @@ int main(){
|
|||||||
int counter=0;
|
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");
|
||||||
char* r = fgets(line,LINE_SIZE,stdin);
|
char* r = fgets(line,LINE_SIZE,stdin);
|
||||||
trim(line);
|
trim(line);
|
||||||
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;
|
||||||
while(read_pizza(&item)){
|
while(read_pizza(&item)){
|
||||||
strcpy(jedalny_listok[counter].name, item.name);
|
strcpy(jedalny_listok[counter].name, item.name);
|
||||||
@ -49,7 +49,7 @@ int main(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//printf("%s",line);
|
//printf("%s",line);
|
||||||
printf("Nacitanych %d poloziek.\n",counter);
|
//printf("Nacitanych %d poloziek.\n",counter);
|
||||||
}
|
}
|
||||||
void trim(char* str){
|
void trim(char* str){
|
||||||
int i=0;
|
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