B
Bubba
Greetings to all,
I created my own parameterized class 'set', here's the code:
http://goo.gl/vrkpC
I implemented constructors, destructor, copy control, assignment operators
(both simple and complex), several set operators (intersection, union,
difference, complement), adding and subtracting members of set, dynamic
memory allocation, etc...
Now, I have two questions:
i) how to make constructor that would "convert" STL (vectors, lists...) to
my set?
ii) I can't figgure out how exactly should operator>> look like. << was
easy enough, but input bothers me.
Thanks for any clue.
Best regards,
Bubba
I created my own parameterized class 'set', here's the code:
http://goo.gl/vrkpC
I implemented constructors, destructor, copy control, assignment operators
(both simple and complex), several set operators (intersection, union,
difference, complement), adding and subtracting members of set, dynamic
memory allocation, etc...
Now, I have two questions:
i) how to make constructor that would "convert" STL (vectors, lists...) to
my set?
ii) I can't figgure out how exactly should operator>> look like. << was
easy enough, but input bothers me.
Thanks for any clue.
Best regards,
Bubba