This is a cleaner way to do it.Breh this isn't even that hard. I don't know C++ but I can give you the basic solution in Java and you can translate it to C++.
Code:public static String getty(String str) { String s = ""; s = str.substring(1) + str.charAt(0) + "ay"; return s; }
That method takes in a word and return the word with the first letter moved to the end and "ay" added to the end.

It's a summer course 5 weeks, so he's probably cutting us slack.


