2 Replies - 1365 Views - Last Post: 09 February 2010 - 08:45 AM Rate Topic: -----

#1 Shanks-T-roux   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 09-February 10

reverse order of array

Posted 09 February 2010 - 08:32 AM

what is c++ code to reverse the order of an array?
Is This A Good Question/Topic? 0
  • +

Replies To: reverse order of array

#2 Martyn.Rae   User is offline

  • The programming dinosaur
  • member icon

Reputation: 548
  • View blog
  • Posts: 1,420
  • Joined: 22-August 09

Re: reverse order of array

Posted 09 February 2010 - 08:34 AM

Exactly what it says. You have an array of lets say numbers 6, 4, 7, 8 and 5. The reverse order would be 5, 8, 7, 4 and 6.

Does that help.
Was This Post Helpful? 0
  • +
  • -

#3 japanir   User is offline

  • jaVanir
  • member icon

Reputation: 1014
  • View blog
  • Posts: 3,025
  • Joined: 20-August 09

Re: reverse order of array

Posted 09 February 2010 - 08:45 AM

you can look for the c\c++ snippets, here on DIC (just type "reverse a string c++" ). there are tons of snippets demonstrating various ways to reverse a String.
and please, respect our forum rules number 1:

Quote

We will not do your homework for you! Do not ask us to give you code!

This post has been edited by japanir: 09 February 2010 - 08:45 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1