Author a function that takes as an argument a string, steps through the string, and prints the text in the following manner:
This is called pig latin.
For example, the "Hello world" program, entered as a single string, would be printed as follows:
#ncludeiayntiay ainmay(); ntiay ainmay() { tdsay::outcay << "elloHay orldway!" << tdsay::ndleay; eturnray 0; }
For slightly more of a challenge, maintain the capitalization of the word. For example, "Hello" is converted to "Ellohay" but "I" remains capitalized as "Iay".
For example, "String" would be printed as "Ingstray" and "aardvark" would be printed as "rdvarkaway".