×

Loading...

Simple question: How to dynamically allocate a two-dimension array in C++........

guest (guest)
I can use new to create a one-dimension array like this:
float *fp;
fp = new float[10];

How about two-dimension (float fp[ ][ ]) and point array (float * fp[ ]) ?
(#95238@0)
2001-6-8 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: Simple question: How to dynamically allocate a two-dimension array in C++........

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论