|
-
April 19th, 1999, 08:28 AM
#1
Dynamic Multidimensional Arrays
Hallo Gurus
I've done the following. It works.
float *array = new float[m_numbRows];
What I like to do is the following:
float *array = new float[m_numbRows][m_numbRows];
But it doesn't work.
I've got the following help from a friend. We think there should be an easier way.
float** pvfArray;
.....later....
pvfArray = new float*[iNumRows];
for(int i = 0; i < iNumRows; i++)
pvfArray[i] = new float[iNumCols];
pvfArray[iR][iC] = 3.9;
Thanks for the help.
M
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|