itoa
From: Edo (eddod_at_eddododod.dod)
Date: 09/29/04
- Next message: Butar Sinaga: "Re: padding a string"
- Previous message: Karl Heinz Buchegger: "Re: flow control in a class"
- Next in thread: Karl Heinz Buchegger: "Re: itoa"
- Reply: Karl Heinz Buchegger: "Re: itoa"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 28 Sep 2004 23:46:58 -0700
Hello
coding in c++ and like to see it portable, itoa in c is not supported by
some compilers so, here is my problem.
int x = 19;
string in = "I ";
string out = in + "am " + x;
I need to get
I am 19 from the example above.
string out = in + "am " + reinterpret_cast<string> (x); does not work
either.
thanks
- Next message: Butar Sinaga: "Re: padding a string"
- Previous message: Karl Heinz Buchegger: "Re: flow control in a class"
- Next in thread: Karl Heinz Buchegger: "Re: itoa"
- Reply: Karl Heinz Buchegger: "Re: itoa"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|