L
Laszlo
Hi all
I my A C++ class at a point I declared a
char *toString()
method. My class A, I have some private
members like
float l, h;
char *name
wich are initialized by the constructor:
l = 10.0;
h = 15.8;
name = "THE_NAME";
When I invoke the toString method, I would
like to get a result like this:
NAME[THE_NAME]:LENGTH[10.0]:HEIGHT[15.8]
How should I write the toString method?
Thank you.
Laci
I my A C++ class at a point I declared a
char *toString()
method. My class A, I have some private
members like
float l, h;
char *name
wich are initialized by the constructor:
l = 10.0;
h = 15.8;
name = "THE_NAME";
When I invoke the toString method, I would
like to get a result like this:
NAME[THE_NAME]:LENGTH[10.0]:HEIGHT[15.8]
How should I write the toString method?
Thank you.
Laci