results in the following CINT output:
Error: Function itoa(byte,buffer,10) is not defined in current scope (tmpfile):8:
*** Interpreter error recovered ***
root [1] .q
Eingabe: 25 Zahl: 19h
Compilation on MacOS X 10.4.4 results in the following error:
error: ‘itoa’ was not declared in this scope
although I have included "#include ".
ISO C++ avoids char* where possible; you’d instead use a stringstream and operator<<(). In C, you’d use sprintf((char*)buf, “%f”, (float)f); But as Olivier pointed out, Form hides the buffer management from you and is thus easier to use.
Thank you for this explanation. What I was hoping was that I could simply write:
TString str = TString(25);
but this is not possible, I have to use:
TString str = “”; str += 25;
or use Form().
Thank you for this explanation. What I was hoping was that I could simply write:
TString str = TString(25);
but this is not possible, I have to use:
Christian[/quote]
That’s possible, but the semantic of such a ctor is different: