#ifndef __CINT__ #include "TCanvas.h" #include "TLine.h" #include "TBox.h" #endif void demo() { TCanvas* c1 = new TCanvas("c1", "" , 20,20,700,900); if (1) { TLine* p = new TLine(0.,0.,1.,1.); p->Draw(); } if (1) { TBox* p = new TBox(0.4,0.4,0.6,0.6); p->Draw(); } c1->Update(); }