I have the following (on a Mandrake 10 Official ( gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)
ROOT * Version 4.01/03 29 September 2004 *
CINT/ROOT C/C++ Interpreter version 5.15.153, Sep 20 2004
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] Double_t a = 17 ;
root [1] Double_t s = a ;
root [2] s
(Double_t)0x11
Why this is permited ?
In gcc the following :
int main()
{
double a = 17;
double *s = a;
}
gives me :
adrian@nthez145: misc $ g++ test.cxx
test.cxx: In function int main()': test.cxx:4: error: cannot convert
double’ to `double*’ in initialization
Thanks !!