my source code is that:
in (1) line i have came across "Lvalue required"Code:class Matrixes { long double **data; public : Matrixes(int row,int column); ~Matrixes(); long double** Matrixes::get(); }; Matrixes::Matrixes(int row,int column) { data = new long double*[row]; for (int j = 0; j < row; j++) data[j] = new long double[column]; } Matrixes::~Matrixes() { } long double** Matrixes::get() { return(data); } class Operations { public: long double** accumulate(long double **dataC,long double **dataA,long double **dataB,int row,int column) { Matrixes m1(3,4); // dimension of m1 object memory allocation m1.get()=dataA; // (1) ---------COMPILE ERROR--------- . . .// function code . return(dataC); } };
what does it means?
what can i solve this problem



LinkBack URL
About LinkBacks


