S
Steve555
Hi,
Here's my struct:
typedef struct{
double matrix[4][4];
}matrixStruct;
When I create and delete this struct... :
matrixStruct *struct = new matrixStruct;
delete struct;
.... is the double array being correctly freed, or do I have a memory
leak?
--------------------------
Also...
stack<double[4][4]> won't compile, which is why I'm using the above
struct: stack< matrixStruct*>" instead. Have I chosen the best
solutiuon to this?
Thanks
Steve
Here's my struct:
typedef struct{
double matrix[4][4];
}matrixStruct;
When I create and delete this struct... :
matrixStruct *struct = new matrixStruct;
delete struct;
.... is the double array being correctly freed, or do I have a memory
leak?
--------------------------
Also...
stack<double[4][4]> won't compile, which is why I'm using the above
struct: stack< matrixStruct*>" instead. Have I chosen the best
solutiuon to this?
Thanks
Steve