Group: uw.cs.cs341 · Group Profile
Author: Scott RycroftScott Rycroft Date: Feb 24, 2008 11:45
I meant it to be used like this
int** array = new int*[n];
for (int i=0; i
But yeah, STL is about as easy as Java.
On Sun, 24 Feb 2008 14:28:07 -0500, Gordon V. Cormack wrote:
> Scott Rycroft wrote:
>> void func(int** array, int n)
>
> That's an array of pointers, not a 2-d array.
>
>> or use Java :)
>
> Let's not get carried away. STL will do it, or you can create your own
> mapping function.
>
> #define myarray(a,b,c) = x[((a)*d1+(b))*d2+(c)]
|