On Thu, 05 May 2005 12:52:06 +0200, SirMike wrote:
[color=blue]
> Edith Gross on 2005-05-05 12:41 spammed:[color=green]
>> 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.)[/color]
> Use stringstream or sprintf.
> like this:
>
> char string1[50];
> char string2[50];
> short int var1;
> float var2;
> ...
> sprintf (string1, "%d", var1);
> sprintf (string2, "%f", var2);[/color]
Thx, but you have misunderstood my problem. My problem is, how a
constructor for a class calls another constructor for the same class.
TIA,
EG
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----