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 -05:00

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

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=95238