Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Mar 11th, 2005, 4:27 PM   #1
Tazz_Mission_13
Newbie
 
Join Date: Mar 2005
Posts: 2
Rep Power: 0 Tazz_Mission_13 is on a distinguished road
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   --->    gdba
                           c            ec            hec
                                         f             if
and so on untill all 36 characters are inserted into the matrix.

If anyone can help me I would really appreciate it.

Thankz,

Tazz

Last edited by Tazz_Mission_13; Mar 11th, 2005 at 4:30 PM.
Tazz_Mission_13 is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:43 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC