このプログラムでは例えば'jump'を'umpjay'の様に英単語の最初のアルファベットを後ろに入れ替えて、その後ろにayと付け加えたいのですが、入れ替えと追加のコードの書き方がさっぱりです。
switch と voidを使うように言われていますが全く動く気配がしません。
アドバイスを頂けるとありがたいです。
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
string newstring(string);
bool isVowel(char ch);
string rotate(string pStr);
string pigLatinString(string pStr);
int main()
{
string str;
cout << "Please enter a word: ";
getline (cin, str);
cout << endl;
cout << "The pig latin for " << str << "is" << newstring(str) << "ay";
system ("PAUSE");
return 0;
}