please tell me what's wrong with my code i found this error
error: expected unqualified-id
while (Key = (TKey*)nextkey()){
[code]
TFile * file = new TFile("ResultData18JUL.root", "READ");
TIter nextkey(gDirectory->GetListOfKeys());
TKey* key;
while (Key = (TKey*)nextkey()){
if(!strcmp( key->GetName(), Form("OutputCent%d_%d", centMin, centMax))){
TList * V0Xi = (TList*)key->ReadObj();
Thanks
Key and key are different! Look closely at UPPERCASE and lowercase.
Last edited on