更新时间:2018-11-22 15:38作者:王华老师
if ( height == 1 )
return subtree;
else if ( height == 2 ) {
struct tree *leaf = null;
for ( i=0; i
denode ( );
;
leaf = null;
}
return subtree;
}
else {
for ( i=0; i
}
return subtree;
}
}
main()
{
.........
struct tree *root = null;
root = dtree (root, h, w) ; // h and w are integers get from input
.........
}