/* -*- C++ -*- */ /************************************************************************* * Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch) * * For the licensing terms see the file COPYING * ************************************************************************/ #include #include class B { int sz; double *d; public: //B(int s) : sz(s+1) { printf("B(%d)\n",s); d = new double[sz]; } B(int s) { sz=s; printf("B(%d)\n",s); d = new double[sz]; } ~B() { printf("~B()\n"); delete[] d; } void Set(double offset, double step) { printf("Set(%g,%g)\n",offset,step); for(int i=0;i