Error: use of undeclared identifier 'right_pad'

TCanvas *c1 = new TCanvas(“c1”, “c1”,900,900);
gStyle->SetOptStat(0);

// Create the three pads
TPad *center_pad = new TPad("center_pad", "center_pad",0.0,0.0,0.6,0.6);
center_pad->Draw();

right_pad = new TPad(“right_pad”, “right_pad”,0.6,0.0,1.0,0.6);
right_pad->Draw();

top_pad = new TPad(“top_pad”, “top_pad”,0.0,0.6,0.55,1.0);
top_pad->Draw();

topright_pad = new TPad(“topright_pad”, “topright_pad”,0.6,1.0,0.57,1.0);
topright_pad->Draw();

TPad *right_pad = ...

1 Like

Thank you. This worked.

or (in modern C++):

auto right_pad = new TPad(“right_pad”, “right_pad”,0.6,0.0,1.0,0.6);
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.