Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Need Help
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
CyCLoBoT




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
rizzix




PostPosted: Sat Nov 22, 2003 2:57 pm   Post subject: (No 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
CyCLoBoT




PostPosted: Sat Nov 22, 2003 3:11 pm   Post subject: (No subject)

Thanks I figured it out.
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: