reading a sentence until double word

hoe can i write a c++ code which reads a sentence until the user enters a word that was entered before

Thank you
Keep a dictionary of used words.
Topic archived. No new replies allowed.