Hi @Karl007
You should put declaration of your variable outside the loop:
myClass* T[2];
for(Int_t i=0; i<2; i++){
T[i]=new myClass();
}
Regards, Sergey
Hi @Karl007
You should put declaration of your variable outside the loop:
myClass* T[2];
for(Int_t i=0; i<2; i++){
T[i]=new myClass();
}
Regards, Sergey