title: Convert sentence into Pig Latin in C++
body: <p>I'm a beginner and I cannot figure out an efficient or not overly complicated way make this program work.</p>
  
  <p>I need to take a sentence in the form of an array (via cin.getline) and write a function that converts it into pig latin in a second array. </p>
  
  <p>I have the input done and the size of the second array set, but I'm having trouble in that I can't think of a way to make find the start of the words in the original array, convert it, and put it into the new array without making a loop that contains a switch statement where each case contains a bunch of nested loops.</p>
  
  <p>I have to create all of my functions myself without using a string library file. </p>
  
  <p>Any help, suggestions, ideas, or examples would be appreciated.</p>
  
  <p>edit:</p>
  
  <p>Yes, this is a university assignment, but I don't need the answer I just need to be steered in the proper direction because I'm out of ideas. </p>
  
  <p>I've been trying to use a loop to find the start of each word and then check whether or not the first letter of the word is a vowel or consonant and then use loop or a nested loop to shift things and put it into the new array but I end up making it more complicated. Like, I use a loop to find the start of a word then a HUGE switch statement to decide whether or not if's a vowel or a consonant and then I end up with each case being some kind of new nested loop that I need to not overwrite itself later in the larger loop. </p>