CodePudding user response:
Is there a big look at! Payment can also!CodePudding user response:
Void tree (node * p) {Cout<& lt; P - & gt; Data<& lt; endl;
If (p!=NULL) {
A tree (p - & gt; Left);
A tree (p - & gt; Right)
}
}
CodePudding user response:
template
Void tree (T * p) {
Cout<& lt; P - & gt; Data<& lt; endl;
If (p!=NULL) {
A tree (p - & gt; Left);
A tree (p - & gt; Right)
}
}
CodePudding user response:
template
Void tree (T * p) {
Cout<& lt; P - & gt; Data<& lt; endl;
If (p!=NULL) {
A tree (p - & gt; Left);
A tree (p - & gt; Right)
}
}