-
October 10th, 2019, 01:05 PM
#1
Reversing an array
Hi,
I have an input array which is containing info from a rectangle, each point is started from left to right and top to bottom,
I want to put this into an array, where the info is read from left to right, but from bottom to top .
Lets say the width is fixed. My pseudocode. I;ll try compiling and [put actual code soon
int inputArray[1000];
int outputArray[1000]
int width = 5;
int in_index = max_size-width;
do{
for(j=0; j<width; j++)
{
outputArray[outindex] = inputArray[inindex];
}
in_index = in_index-width;
}
while(in_index > = 0)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|