Write a function that takes in a c++ string of pig latin. This function should f
ID: 3686951 • Letter: W
Question
Write a function that takes in a c++ string of pig latin. This function should first calculate how many “words” are in the sentence (words being substrings separated by whitespace). It should then allocate an array of the structure Word of this size (so large enough to hold the sentence). It should then store each of the words in that sentence to the array of structures in the piglatin field. The function should then return this array to the calling function with a return statement, along with a size through a reference parameter.
Explanation / Answer
//the function that needs to be implemented is this:
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.