Home > Back-end >  The distribution of the 2 d array pointer and release
The distribution of the 2 d array pointer and release

Time:10-11

I type defines a global two-dimensional array pointer, in the circulation of the main function of the body to allocate and free right? If I in the function of the body to release, prompt error
Definition of global two-dimensional pointer variable for float * * qp;
 


Runtime errors:


Don't know where to go wrong, or my program writing ideas already has a problem, you advice, thank you very much

CodePudding user response:

Use new and delete in application and release space

CodePudding user response:

reference 1st floor ZXPHXH response:
use new and delete in application and release space
well, (even though it's o yes, oneself too careless

CodePudding user response:

How to make 3 d? By the way

CodePudding user response:

The
reference 3 floor daystayflower response:
3 d how? By the way
3 d pointer is not float * * * p; Actually like 2 d pointer,
http://wenku.baidu.com/view/78a22db569dc5022aaea0058.html
More detailed, you can see
  • Related