Hi,
I routinely use :
char* rname[5] ={ "batchs/gandus1/avrun_result58_20000903_102420.root",
"batchs/gandus1/avrun_result116_20000903_102420.root",
"batchs/gandus1/avrun_result127_20000903_104152.root",
"batchs/gandus1/avrun_result134_20000903_104152.root",
"batchs/gandus1/avrun_result140_20000903_105803.root"};
And similar initialisations in my macros.
A print of a rname[i] gives the expected string.
Yannick
--
_/ Yannick Patois _________________ Address (home) __________________
| irc(undernet): Garp on #france25+ | La Villa des Sciences |
| email : patois@ganil.fr | 12, avenue de Cambridge |
| http://garp.feelingsurfer.net/ | 14200 Herouville-Saint-Clair |
| Tel/Fax-home:+33 (0)2 31 94 50 32 | FRANCE |
On Mon, 11 Sep 2000, Amaya Lopez-Duran Viani wrote:
>
> Hi,
>
> I have tried to use the following initialization of string
>
>
> {
> const int MaxHistos = 24;
> char HisXTit[MaxHistos][5] = {"xCal", "yCal", "yCal",
> "xHES", "yHES", "yHES",
> "xCal", "yCal", "yCal",
> "rCal", "rCal", "rCal",
> "rHES", "rHES", "rHES",
> "rCal", "rCal", "rCal",
> "zCal", "xCal", "xCal",
> "yCal", "yCal", "zCal"};
>
> int i;
>
> for(i=0;i<MaxHistos;i++){
> printf("%s\n",HisXTit[i]);
> }
> }
>
> which in C compiles and works, but not in ROOT. Does anyone know if it is
> possible to do the same thing in ROOT?
>
> Thanks,
>
> Amaya Lopez-Duran Viani
>
>
>
>
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:32 MET