Re: [ROOT] TString: Add an ineger to a TString operator+

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Mar 20 2001 - 09:07:22 MET


Hi Christian,
When sending mails to roottalk or rootdev, ALWAYS SPECIFY WHICH VERSION
AND WHICH MACHINE.

You must be using an old version of Root. The current production version
3.00/06 executes correctly your simple test.

Rene Brun

On Mon, 19 Mar 2001, Christian Flacco wrote:

> Hello,
> I am new to Roottalk; I hope this is appropriate use.
> 
> I am trying to append an integer to a TString.
> I have found a function that appears to do this: operator+
> which is documented as "Add an integer to a string"
> 
> I have attempted the following test script, which runs,
> but does not append the integer.
> 
> {
> Long_t n = 10;
> TString string = "The number of fingers I have is ";
> string = string + n;
> cout << string2 << endl;
> } //Output: **The number of fingers I have is **
> 
> Any advice would be much appreciated--    Christian
> 



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:40 MET