RE: [ROOT] dynamic allocation and string

From: John Zweizig (jzweizig@ligo.caltech.edu)
Date: Thu Mar 14 2002 - 22:53:55 MET


On Thu, 14 Mar 2002, Tommaso Chiarusi wrote:

> thanks Philippe.
> To be more precise I've to attach my file.
> 

One problem is that you dimension your arrays with 26 elements

>   ifstream *ff[26];
>   string st[26];

but loop over 27 elements

> for (int lu=0;lu<27;lu++)
>   {
>     char *nome=st[lu].c_str();
>     azione(ff[lu],cr,1,delta,nome);// call the function on top of this file
>    }



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:46 MET