I am trying to write a program that will aid me in some translation work. It takes a string, tokenizes it, and translates each word individually. My problem is that it is only testing the first word in my vector and returning "not found" for the remaining words.
It should do this:
Enter a string: day night
day: giorno
night: notte
But it does this:
Enter a string: day night
day: giorno
night: not found
The second word is never found regardless of what happens with the first word.
The class I created isn't necessary, but I did that because I learned that yesterday in class and wanted to practice a bit.