Aktualizovat "program.c
This commit is contained in:
parent
ec7535c31e
commit
4cd1a17eb9
@ -25,7 +25,7 @@ int compare_pizza(const void * left, const void * right) {
|
|||||||
else{
|
else{
|
||||||
int i=0;
|
int i=0;
|
||||||
while(1){
|
while(1){
|
||||||
printf ("A: %c B: %c\n",a->name[i],b->name[i]);
|
//printf ("A: %c B: %c\n",a->name[i],b->name[i]);
|
||||||
if(a->name[i]=='\n' || b->name[i]=='\n'){
|
if(a->name[i]=='\n' || b->name[i]=='\n'){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -33,11 +33,11 @@ int compare_pizza(const void * left, const void * right) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if(a->name[i] > b->name[i]){
|
else if(a->name[i] > b->name[i]){
|
||||||
printf (" MENIM A: %c B: %c\n",a->name[i],b->name[i]);
|
//printf (" MENIM A: %c B: %c\n",a->name[i],b->name[i]);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else if(a->name[i] < b->name[i]){
|
else if(a->name[i] < b->name[i]){
|
||||||
printf ("NEMENIM A: %c B: %c\n",a->name[i],b->name[i]);
|
//printf ("NEMENIM A: %c B: %c\n",a->name[i],b->name[i]);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
Loading…
Reference in New Issue
Block a user