Re: [gcj] In C++ dynamic array creation

2012-05-15 Thread Carlos Guia
Depends on your exact needs, if all you care about is accessing elements as mat[i][j] you can do something like this: int** matrix; ... matrix = new int*[M]; // create an array of pointers to int for (int i = 0; i < M; ++i) matrix[i] = new int[N]; // create an array of integers for each "ro

[gcj] In C++ dynamic array creation

2012-05-15 Thread Registered user
how to create 2d or 3d array dynamically , giving the size at run time : for global array -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To post to this group, send email to google-code@googlegroups.com. To unsubscribe from this group, s