Subscribe ( )

iPhone Programming Tutorials


 

Forum

You must be logged in to post Login Register

Search 

Problem with 2D Array

User Post

11:47 pm
February 10, 2009


jitesh61

iCoder

posts 12

1

Hi all,


I m having problem with 2D array. I want to insert some values into the 2D array in for loop at particular index, but fail to do that.  this is what I want to do 

inputArray = {{2,3}, {4,5}};


for(i=0; i<2; i ++) {

for(j=0; j<2; j++) {

outputArray[i][j] = inputArray[i][j];

}

}

How to achieve this in Objective-C.

Search 

About the iCodeBlog forum

Most Users Ever Online:

44


Currently Online:

2 Guests

Forum Stats:

Groups: 2

Forums: 6

Topics: 419

Posts: 893

Membership:

There are 934 Members

There has been 1 Guest

There are 2 Admins

There is 1 Moderator

Top Posters:

bobcubsfan – 54

crazyiez – 30

Uhu – 17

AdeC – 17

Nick – 15

jitesh61 – 12

Administrators: Brandon (88 Posts), Collin (0 Posts)

Moderators: VertigoSol (26 Posts)



©   

  • Posted by on 6 Aug 2008 in Uncategorized
  •   |  
  •   |  
  •   |  
  • Comments Off

Comments are closed.