int TreeDepth(CSTree T)
{
if(!T) return 0;
else{
h1 = TreeDepth(T->firstchild);
h2 = TreeDepth(T->nextsibling);
return(max(h1+1,h2));
}
}
int TreeDepth(CSTree T)
{
if(!T) return 0;
else{
h1 = TreeDepth(T->firstchild);
h2 = TreeDepth(T->nextsibling);
return(max(h1+1,h2));
}
}