我的代码中有这个:
double** desc = new double* [size_out];
for (int i = 0; i < size_out; i++)
desc[i] = new double [size_in];
我该如何删除这个desc
?
我应该这样做:
delete [] desc;
或者
for (int i=0; i<size_out; i++)
delete [] desc[i];
delete [] desc;
或者
for (int i=0; i<size_out; i++)
delete [] desc[i];
delete desc;
?