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