Using Distinct, ... continued
Øpublic:
Ø // Creating a new poly
Ø poly() { i=0; tag=I;
}
Ø poly(int ii) { i=ii;
tag=I; }
Ø poly(node<poly> *
pp) { p=pp; tag=P; }
Ø // Changing the value in a poly
Ø void set(int ii) { i=ii;
tag=I; }
Ø void set(node<poly>
* pp) { p=pp; tag=P; }
Ø void print_preorder(void);
Ø};
Ø
Øtemplate <class t> struct node {
Ø t data;
Ø node<t>* next; };