vie niekto vysvetlit toto?
preco je tam m = 4*pow(2,T->MaxLevel-1), n = pow(2,i-1); l = (m-2*n)/n; ?
Code [Select]
void
PrintTree( Tree T )
{
int i, j, k = 1, l, m = 4*pow(2,T->MaxLevel-1), n;
if(T == NULL) FatalError("No tree!");
for(i = 1; i<=T->MaxLevel; i++)
{
n = pow(2,i-1);
for(j=0;j<pow(2,i-1);j++)
{
l = (m-2*n)/n;
if(j==0) PrintSpaces(l-(l/2)); else PrintSpaces(l);
printf("%02d", T->Array[k++]);
}
putchar('\n');
}
}
preco je tam m = 4*pow(2,T->MaxLevel-1), n = pow(2,i-1); l = (m-2*n)/n; ?