I made a program that BLEEPS disliked words. The output of this vector seems to read the sentence one word at a time and after each word it starts at the first word again. Ex. (reads the first word, then reads the first word again, then the second, and then starts at the beginning again till the third word, etc). Is there a way to get it to just output the entire sentence without repeating itself?
Your for loop at line 19 is within the scope of your while loop, so you're going to execute the for loop for each iteration of the while loop.
What you want is to have only line 15 within the scope of the while loop. That way you build the entire vector of words first. Then after you've completed the while loop, enter your for loop to display the words.