du2 - 6
This commit is contained in:
parent
51aef6edb2
commit
8010ecc6cb
@ -43,9 +43,9 @@ int read_pizza(struct pizza *item) {
|
|||||||
|
|
||||||
// porovnanie dvoch položiek
|
// porovnanie dvoch položiek
|
||||||
int greater(struct pizza *a, struct pizza *b) {
|
int greater(struct pizza *a, struct pizza *b) {
|
||||||
if (a->prize > b->prize)
|
if (a->price > b->price)
|
||||||
return 1;
|
return 1;
|
||||||
if (a->prize < b->prize)
|
if (a->price < b->price)
|
||||||
return 0;
|
return 0;
|
||||||
return strcmp(a->name, b->name) > 0;
|
return strcmp(a->name, b->name) > 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user