E
Edith Gross
I'd like to have two constructors:
class X {
X(char *s);
X(float x);
...
};
Now when the second constructor is called, I want to convert the floating
point number into a string (that is simple) and call the first
contrsuctor. How can I do this? (X has some dynamically allocated memory.)
TIA,
EG
class X {
X(char *s);
X(float x);
...
};
Now when the second constructor is called, I want to convert the floating
point number into a string (that is simple) and call the first
contrsuctor. How can I do this? (X has some dynamically allocated memory.)
TIA,
EG