Computer Science Canada

Need Help

Author:  CyCLoBoT [ Sat Nov 22, 2003 2:49 pm ]
Post subject:  Need Help

I wanted to convert a 1D array into a 2D array given the width and height in that order. I am stuck on it and don't know how to do it. Here's an example of what I mean:

[1,2,3,4,5,6], width 2, heigth 3-->1D Array

to

1 2
3 4
5 6

Thanks

Author:  rizzix [ Sat Nov 22, 2003 2:57 pm ]
Post subject: 

this might help u: http://www.compsci.ca/v2/viewtopic.php?t=2299
although it was an example for turing,, u can use the same concept to create a 2D array

Author:  CyCLoBoT [ Sat Nov 22, 2003 3:11 pm ]
Post subject: 

Thanks I figured it out.


: