You want to convert from an integer to a string?
string output = "";
while ( x > 0 )
{
output = output + ( x % 10 + '0' );
x = x / 10;
};
or if you want to go the whole C++ route,
strstream output;
output << x ;
string out = output.str();
brax.
On Thu, 13 Jan 2000, chien-yu chen wrote:
> sorry, I know I asked this question before, but I can't find my old
> program nor on the siglinux archive...
>
> I know it's some combonation of scanf..please give me a hint if you
> know it..thanks..
>
> --
> ~ Experience the power of the Penguin
> 'v' _/ _/_/_/ _/ _/ _/ _/ _/ _/
> // \ _/ _/ _/_/ _/ _/ _/ _/_/
> /( )\ _/ _/ _/ _/_/ _/ _/ _/_/
> ^`~'^ _/_/_/ _/_/_/ _/ _/ _/_/_/_/ _/ _/
>
> ---------------------------------------------------------------------------
> Send administrative requests to [EMAIL PROTECTED]
>
---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]