I want to use TMatrixD class in other class. this is some code of my apps. ----------------------- class Fields{ /* * Fields */ public: TMatrixD Ex; TMatrixD Ey; TMatrixD Hz; TMatrixD Hzx; TMatrixD Hzy; Fields(int x, int y); }; Fields::Fields(int x, int y) { Ex.Allocate(x,y+1,0,0); Ey.Allocate(x+1,y,0,0); Hz.Allocate(x,y,0,0); Hzx.Allocate(x,y,0,0); Hzy.Allocate(x,y,0,0); } ----------------------- But, Allocate function is a protected member. So my attempt was useless. How can I allocate memory for TMatrixD? Ansi c++ didn't allow non-static members, so I can't use it's constructor, TMatrixD Ex(10,10). -- Sincerely, Ki-young
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:04 MET