Revision: 65686
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 11, 2014 04:18 by HeatPwnz
Initial Code
void preorder(element poz, btree *T){
cout << LabelB(poz,T) << " ";
if (LeftChildB(poz,T)) preorder(LeftChildB(poz,T), T);
if (RightChildB(poz,T)) preorder(RightChildB(poz,T), T);
}
void inorder(element poz, btree *T){
if (LeftChildB(poz,T)) inorder(LeftChildB(poz,T), T);
cout << LabelB(poz,T) << " ";
if (RightChildB(poz,T)) inorder(RightChildB(poz,T), T);
}
void postorder(element poz, btree *T){
if (LeftChildB(poz,T)) postorder(LeftChildB(poz,T), T);
if (RightChildB(poz,T)) postorder(RightChildB(poz,T), T);
cout << LabelB(poz,T) << " ";
}
Initial URL
Initial Description
header sa funkcijama za ophodenje binarnog stabla
Initial Title
ophodenje_stabla.h
Initial Tags
Initial Language
C++