(no subject)

From: Constantinos Loizides (Constantinos.Loizides@cern.ch)
Date: Tue Sep 08 1998 - 11:56:24 MEST


Dear Rooters,

whats wrong with the following statements:

char * s="Hallo";
TString *text=new TString(s);
printf("%s --- %s\n",s,(char *)text);

the output to that looks like:
Hallo --- @O¼z×ì`«

What am I doing wrong?

Cheers,

Constantin

---------------------------------------------------
Constantin Loizides, 
CERN EP-Na49, 982-2-A14, Tel: +41-22-76 79541

http://www.rz.uni-frankfurt.de/~loizides/index.html
---------------------------------------------------



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:37 MET