Update 'cv2/program.c'
This commit is contained in:
parent
e65ddf2a87
commit
7852d78ca9
@ -55,5 +55,7 @@ int compare_pizza(const void* pVoid1, const void* pVoid2) {
|
|||||||
float r = price1 - price2;
|
float r = price1 - price2;
|
||||||
if (r > 0.) return 1;
|
if (r > 0.) return 1;
|
||||||
if (r < 0.) return -1;
|
if (r < 0.) return -1;
|
||||||
if (r == 0.) return 0;
|
char* name1 = pPizza1->name;
|
||||||
|
char* name2 = pPizza2->name;
|
||||||
|
if (r == 0.) return strcmp(name1,name2);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user