Thread
:
one array values to a two dimension array
View Single Post
01-29-2006, 10:32 AM
#
2
(
permalink
)
redhead
Newbie
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
Something like this ?
Code:
for(int i=0, j=0; i < 16; ++j) for(int k=0; k < 4; ++k, ++i) Two[j][k] = array[i];
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
Last edited by redhead; 01-29-2006 at
11:45 AM
.
redhead
View Public Profile
Visit redhead's homepage!
Find More Posts by redhead