阅读背景:

为具有许多友元函数c ++的模板类(2d动态)创建析构函数

来源:互联网 

i'm having problems creating a destructor for a template class that has a private 2d dynamic array. for some reason the destructor destroys the matrix as soon as i am done entering information into the matrix. not sure what went wrong since it compiles fine but gives an error when i enter the info for the first 2 matrices and the program tries to multiply them. the code works if i get rid of the destructor.i'm having problems creating a destructor for a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: