Are you trying to create a 2d array of integers where each dimension is the same size? Here's how to do it. (It's spelled int, not Integer)

Think of a 2d array much like a chessboard which has rows and columns. The rows are the first dimension and the columns are the second dimension. Before you can allocate the columns you have to allocate the rows.

const int size = 4;
int** twod = new int[size]; // rows
for(int i = 0; i < size; i++)
twod[i] = new int[size]; // columns

Now, then you destroy that you do it in reverse order, that is delete[] the columns first and then the rows.

The thing is the class name is Integer. How would one change the implementation so that it creates an object(Integer) in each block in a dynamic 2d array? So it's a pointer pointing to a 2d array. That's why I used 2 for-loops in stead of just one. And yes each dimention is the same size.

Is my way of doing correct as indicated in the first post?

i think you want an array of pointers to Integer?
is like a cube 3D ))
when you call a value from cube use twoD[x][y][z];
if you wanted just a 2D array remove one asterisk from everywhere
and the last for with his body

const int size = 10;
Integer *** twoD;
twoD = new Integer**[size]; // rows
for(int i = 0 ; i < size ; i++) {
twoD[i] = new Integer*[size]; // columns
for(int j = 0 ; j < size ; j++)
twoD[i][j] = new Integer[size]; // depth
}

Need some help with this Array. I am trying to get the sum of the even numbers and the sum of the odd numbers using a for each loop. I know the answers to what I am trying to achive are sum of even = 84 and the sum of ...

When I execute this progammatically, I get a table with row heights much larger than when I do this manually.

Note : Sel is the Word.Selection object and the Clipboard contains an Excel Table.

public void AddClipboard()
{
Sel.PasteExcelTable(false,false, false);
var t = Sel.Tables[Sel.Tables.Count];
t.AutoFitBehavior(Word.WdAutoFitBehavior.wdAutoFitContent);
}

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...