#include #include using namespace std; string ToPigLatin(const string& word); int main() { // creation of 5 character strings, each length MAX string word[5]; int i; // loop counter cout << "Input 5 words: "; for (i = 0; i < 5; i++) cin >> word[i]; cout << "\nPig Latin versions of the 5 words:\n"; for (i = 0; i < 5; i++) cout << ToPigLatin(word[i]) << ' '; cout << '\n'; return 0; } // Write your definition of the ToPigLatin function here