first, take the sentence and split it up into words, either by looking for spaces, or using the
strtok
function
Push each of those words into an array
Then walk through that array, 'pig'ify the word, and shove the result into the same array, or another one
Then walk thru the modified array printing each member with a space after it
array's are irksome, they have to be presized (unless you're doing them dynamically) and arrays of strings are more even irksome
you might have more luck using
std::vector[
^]s of
std::string[
^]s