How to separate words into different vectors

Ok so im trying to split words up into two different vectors, the words are on the same line separated by a space, and i just cant seem to figure it out. im loading the words in the LoadWords function near the top

tempJwords.push_back("TempJword");//why do you do this
tempEwords.push_back("TempEword");//and this?

I do that because i thought you need to initialize the vector or else you get weird symbols, is this not true? I dont like doing that but i thought thats what i was supposed to do, as for lines 11-12 im removing the temp words so they dont appear in the output, what other way can i do this?

also im getting words from a file so i need to know how to break up the string from 2 words to one, the program needs to know where the space is and put the first word into the first vector and the other word into the other vector, im confused on that.

also im getting words from a file so i need to know how to break up the string from 2 words to one

the >> operator uses the space character as a delimiter so it will break the words apart automatically. Naraku's code will work for a file you just need to change the stream. So cin should be someFileStream.