On Fri, 04 Apr 2008 11:43:10 -0700, xz wrote:
>> But if you wanted that why would
>> you start off with a plain 2D array in the first place.
>
>
> If you wanna initialize a 2D vector (12x2) with the following data:
>
> -5, -5,
> -5, 105,
> 105, 105,
> 105, -5,
> 60, -5,
> 60, 40,
> 70, 40,
> 70, 60,
> 30, 60,
> 30, 40,
> 40, 40,
> 40, -5,
>
>
> How do you do that?
int arr[2][2]={{-5,-5,},{-5,105}};
You can probably figure out the rest...


|