[ROOT] TString

From: Michael Wiesmann (wiesmann@e18.physik.tu-muenchen.de)
Date: Tue Nov 26 2002 - 09:44:28 MET


giuseppe.foggi@libero.it writes:
 > Hi,
 >  how can print on the Standard Output (video) a TString?
 >  With the statment
 >    cout<<str;
 >  where TString str
 >  I didn't get the contained of the TSring.
 >  I have need to print a TString within a script.
 >  Thank you.
 >  Giuseppe.
 >  
 > 



Hi Guiseppe!

Use the member function  const char* TString::Data() const:


cout<<str.Data()<<endl;


Michael



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:21 MET