Question: You must implement: string rotate _ vowels ( string& s ) ; This function must accept a string parameter s by reference, and change it
You must implement:
string rotatevowelsstring& s;
This function must accept a string parameter s by reference, and change it directly by replacing each vowel with its alphabetical successor among vowels defined circularly. That is replace a with ee with i i with oo with u and u with a For example, after executing the following two lines,
string s "that's really cool"; rotatevowelss;
the variable s should contain the string thets rielly cuul
In addition to changing the parameter passed in by reference, it must ALSO return this parameter.
See what happens if you implement a casesensitive version of this function.
ChatGPT
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
