Hello Gora,
Thank you for your message. As far as I tried, your macro
worked fine with 2.25/3.00 and with Linux and Windows-Me.
Will you give me more information?
- Operating system and compiler you are using
- What exact error did you get? Please send me the ROOT/CINT output
as it is.
Masaharu Goto
>Date: Thu, 15 Feb 2001 14:03:25 -0800
>From: Gora Mohanty <gora@solar2.ucr.edu>
>To: roottalk@pcroot.cern.ch
>Subject: [ROOT] CINT and string streams and doubles
>
>Hello,
> CINT seems to have trouble with the following simple macro:
>{
> istringstream istr( "12:30:24" );
> double i, j, k;
> char s1, s2, end;
> istr >> i >> s1 >> j >> s2 >> k >> end;
> cout << i << ' ' << j << ' ' << k << endl;
>}
>
>When trying to execute this with any of ROOT versions 2.23, 2.25, 3.00, it
>hangs ROOT. Same problem if I replace istringstream with istrstream. In eithe
r
>case, it works if I make i, j, and k, ints instead of doubles, but does not
>work with floats. So, it seems like CINT is having trouble with floating-poin
t
>values.
> Thanks for all the work on ROOT, and thanks in advance for any help with
this
>problem. If it makes a difference, ROOT is running on a Pentium-II, Linux Sus
e
>6.1 system, with kernel 2.4.1. Compiling an equivalent program with g++ works
>fine.
>
>Regards,
>Gora
>
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:36 MET