![]() |
Converting 1-dimensional array to 2-dimensional array
Hello,
I was wondering if someone can help me figure out the issue that I cannot seem to get around. I have been attempting to convert a 1-Dimensional array to a 2-Dimensional array (also called a matrix), but just cannot figure out how to do it. Here are the parameters: --- I have a 1-Dimensional array of characters that has length 36, called array1. The array is: abcdefghijklmnopqrstuvwxyz0123456789 --- The 2-Dimensional array, called matrix, is 6x6, so it is square and can hold all the 36 characters from array1. What I want to do is convert the array1 to matrix starting with the upper right corner. An example of this would be: :
a ----> ba ----> dba ---> gdbaIf anyone can help me I would really appreciate it. Thankz, Tazz |
[solved]
I got the solution my self
|
Glad you found it... :)
Shouldn't have been that bad |
hi,,,
can u write the sulution pleaze?? |
i think i would of attempted it using nested for loops but I would like to see how someone else would do it if anybody would like to post the code for it
|
pllllz put the code i need it nessesary ... for the assigment plazzz
|
I know, i'm slow .. but i haven't got the time to think about it. Here it is:
:
|
| All times are GMT -5. The time now is 6:22 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC