Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > Re: What's the ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 7 Topic 44399 of 48417
Post > Topic >>

Re: What's the most efficient way to transform a 2d array into a 2d

by Brian Tyler <brian.tyler@[EMAIL PROTECTED] > Apr 4, 2008 at 10:57 PM

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...
 




 7 Posts in Topic:
What's the most efficient way to transform a 2d array into a 2d
xz <zhang.xi.cn@[EMAIL  2008-04-04 09:31:30 
Re: What's the most efficient way to transform a 2d array into a
Abhishek Padmanabh <ab  2008-04-04 10:22:25 
Re: What's the most efficient way to transform a 2d array into a
xz <zhang.xi.cn@[EMAIL  2008-04-04 11:43:10 
Re: What's the most efficient way to transform a 2d array into a
Brian Tyler <brian.tyl  2008-04-04 22:57:30 
Re: What's the most efficient way to transform a 2d array into a
Abhishek Padmanabh <ab  2008-04-04 23:07:26 
Re: What's the most efficient way to transform a 2d array into a
xz <zhang.xi.cn@[EMAIL  2008-04-07 13:53:37 
Re: What's the most efficient way to transform a 2d array into a
Christopher <cpisz@[EM  2008-04-07 14:36:57 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 9:20:32 CST 2008.