concatenation
From: Laszlo (graf.laszlo_at_axis.hu)
Date: 02/28/05
- Next message: Richard Tobin: "Re: [OT] identity theft"
- Previous message: infobahn: "Re: calling my custom function same as library function"
- Next in thread: Jens.Toerring_at_physik.fu-berlin.de: "Re: concatenation"
- Reply: Jens.Toerring_at_physik.fu-berlin.de: "Re: concatenation"
- Reply: Thomas Matthews: "Re: concatenation"
- Reply: Flash Gordon: "Re: concatenation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Feb 2005 05:25:58 -0800
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
- Next message: Richard Tobin: "Re: [OT] identity theft"
- Previous message: infobahn: "Re: calling my custom function same as library function"
- Next in thread: Jens.Toerring_at_physik.fu-berlin.de: "Re: concatenation"
- Reply: Jens.Toerring_at_physik.fu-berlin.de: "Re: concatenation"
- Reply: Thomas Matthews: "Re: concatenation"
- Reply: Flash Gordon: "Re: concatenation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|