This commit is contained in:
Matej Hajduk 2025-10-01 10:28:42 +02:00
parent 0263d6dbcd
commit 697f39dbd6

View File

@ -45,8 +45,8 @@ int main() {
break; break;
} }
strncpy(list[buf].name, meno_buf, LINE_SIZE); strncpy(list[buf].name, meno_buf, LINE_SIZE);
list[buf].price= price; list[buf].price= cena;
count++; buf++;
} }
qsort(list, buf, sizeof(struct pizza), porovnaj); qsort(list, buf, sizeof(struct pizza), porovnaj);