Rearranging a string

I want to know if it's possible after receiving a string with cin, if you can rearrange the individual letters, such as in a name, and then print it back out.
I was learning C++ a few years back and decided to start up again and I'm wondering if this would be difficult to do for a newer person.

If the question is too vague I can maybe clarify with this:

Name = Jeff
print out "Name is fJfe"

something like that, just for fun.
A string is essentially an array. With a little knowledge on string functions, and using the array, this is fairly simple. Now if you want to do it randomly, it gets a little more complex, but moving one or two characters around shouldn't be too complex.
Topic archived. No new replies allowed.