Skip to content

Instantly share code, notes, and snippets.

View paulerickson's full-sized avatar

Paul Erickson paulerickson

View GitHub Profile
bool node::del(node*& p, string n) {
83 if (n < name) //to the left
84 if (l)
85 return l->del(l, n);
86 else
87 return 0;
88
89 if (n > name) //to the right
90 if (r)
91 return r->del(r, n);