Question: [C++] Write a function newOrderStr to rearrange the characters in a string passed by the calling function, first the characters with odd subscripts, then the

[C++] Write a function newOrderStr to rearrange the characters in a string passed by the calling function, first the characters with odd subscripts, then the characters with even subscripts, to form a new string and return to the calling function, the original string constant. For example, the new string "0123456789" after rearrangement is "1357902468"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!