You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
}<br />
s e l e c t i e (a , 1 , n , vglx ) ;<br />
druk(a , n ) ;<br />
s e l e c t i e (a , 1 , n , vglf ) ;<br />
druk(a , n ) ;<br />
int vglx ( Blok ∗s , Blok ∗t )<br />
{<br />
}<br />
if ( s−>x < t−>x )<br />
return −1;<br />
else if ( s−>x > t−>x )<br />
else<br />
return 1;<br />
return 0;<br />
int vglf ( Blok ∗s , Blok ∗t )<br />
{<br />
}<br />
if ( ( float ) s−>x/s−>y < ( float ) t−>x/t−>y )<br />
return −1;<br />
else if ( ( float ) s−>x/s−>y > ( float ) t−>x/t−>y )<br />
else<br />
return 1;<br />
return 0;<br />
void s e l e c t i e ( Blok a [ ] , int b , int n , int (∗ vgl )( Blok ∗ , Blok ∗))<br />
{<br />
int i , j , k ;<br />
Blok x ;<br />
if ( b == n )<br />
return ;<br />
x = a [ b ] ; k = b ;<br />
for ( j=b+1; j