hi,
i have a class with the data types i need.
so far i've implemented the = operator which takes the items in the right side and sets it in the left side.
so in the main if i said:
CD1 = CD2;
then all the members of CD2 are copied to CD1. i think it's called a copy constructor.
however, now my question pertains to another constructor.
if i want to initialize an integer and set it equal to 5, then i can say:
int var = 5;
int var("5");
how can i do this? what type of operator do i have to overload if that's what i have to do?
thanks,
barneygumble742