View Single Post
  #7 (permalink)  
Old 10-05-2006, 09:10 AM
Ronin Ronin is offline
Programming Professional
 
Join Date: Apr 2006
Posts: 299
Credits: 0
Rep Power: 11
Ronin is on a distinguished road
Default

That is a neat function. I'm not sure I will get the syntax right here but couldn't you use this to return the reverse of a string: (I'm also not sure of the array functions)

Code:
array[0] = array;
rArray[0] = array;
int count=0;

for (int i=length(array); i>=0; i--) 
{
     rArray[count] = array[i];
     count++;
}
I could be way off though.
Reply With Quote