|
-
November 12th, 2005, 07:25 PM
#3
Re: array manipulation
I assume that you want to remove the last two elements
and move them to the beginning. That is (for an int example) :
0 1 2 3 4 5 6
change to
5 6 0 1 2 3 4
if so, you might be able to use std::rotate in <algorithm>, but it
depends on what your "array of strings" looks like.
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
|