View Single Post
Old 03-26-2009, 02:46 PM   #2 (permalink)
surgeVel
surgeVel's Avatar
 

Join Date: Feb 2008

Location: Fort Wayne, IN

Posts: 2,150

surgeVel will become famous soon enoughsurgeVel will become famous soon enough

Send a message via AIM to surgeVel
Default Re: Student needs help

Well, I know Java, not C# but in Java here is how you would copy the 2d arrays:

Code:
for (int i = 0; i < array1.length; i++){
   for(int j = 0; j < array1[i].length; i++){
        array2[i][j] = array1[i][j];//copies array value at location i,j to new array.
   }
}
You will need to use a similar process for printing out the array and resetting the array. Just a bunch of loops with a different main action.
__________________

If I was helpful, please click the icon on the left hand side of this message that looks like a check mark Thanks!

Sig courtesy of Baez =)
surgeVel is offline