/* -*- C++ -*- */ /************************************************************************* * Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch) * * For the licensing terms see the file COPYING * ************************************************************************/ #include typedef int Int_t; int x=0; class TTRAP { int a; public: TTRAP() { a=x++; } void disp() { printf("%d\n",a); } }; void f() { Int_t i,k; printf("f-----------------\n"); const Int_t nSec=2; const Int_t nPads=3; TTRAP *** trap; trap = new TTRAP** [nSec]; for (i=0;idisp(); trap[k][i][0].disp(); } } for (k=0;kdisp(); p->disp(); trap[0][0][1] = x; trap[0][0][0].disp(); trap[0][0][1].disp(); delete[] p; delete[] trap[0]; delete[] trap; } int main() { ff(); f(); return 0; }