Hello
While trying to compile a code containing the following line
[code]char Name_Bkg_[100];
sprintf (Name_Bkg_, “%s”, Branch_Sgnl_->GetName ());
for (Int_t j = 0; j < Entries_Bkg; j++) {
TBranch *Branch_Bkg_ = (TBranch *) Branches_Bkg->At (j);
char Name_Bkg2_[100];
sprintf (Name_Bkg2_, "%s", Branch_Bkg_->GetName ());
tree_Signal->Draw (Form ("%s:%s>>hcorr", Name_Bkg_, Name_Bkg2_, "", "goff"));
}
[/code]
I get an error
error: too many arguments for format [-Werror=format-extra-args]
tree_Signal->Draw (Form ("%s:%s>>hcorr", Name_Bkg_, Name_Bkg2_, "goff"));
I cannot understand what I am doing wrong.
Thanks
Alex