Hi, Rooters: When I was using strstream to generate the name of my output *.root file, I find a strange effect. The problem is simplified as following: ******************************************* * * * W E L C O M E to R O O T * * * * Version 2.23/11 14 January 2000 * * * * You are welcome to visit our Web site * * http://root.cern.ch * * * ******************************************* CINT/ROOT C/C++ Interpreter version 5.14.25, Nov 25 1999 Type ? for help. Commands must be C++ statements. Enclose multiple statements between { }. Welcome to the ROOT tutorials Type ".x demos.C" to get a toolbar from which to execute the demos Type ".x demoshelp.C" to see the help window *** Start at Date : 14-Feb-2000 Time : 10:38:4 *** QAInfo:You are using STAR_LEVEL : new and ROOT_LEVEL : 2.23.11 root4star [0] strstream a; root4star [1] a<<"nhitsBin_0_10_20_45_ptBin_0_Inf_"; root4star [2] cout<<a.str()<<endl; nhitsBin_0_10_20_45_ptBin_0_Inf_ au200/v <=====what is this? there are ^^^^^^^^ some othe strange characters as well, they can not be copied. root4star [3] strstream b; root4star [4] b<<"nhitsBin_0_10_20_45_ptBin_0_Infinity_"; root4star [5] cout<<b.str()<<endl; nhitsBin_0_10_20_45_ptBin_0_Infinity_ <=======OK if use "Infinity_" instead of "Inf" The "Inf" is not a C++ keyword, so I hit a limitation in Cint? Thanks! Aihong
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:18 MET