How to read from another file

Aug 29, 2014 at 4:16pm
Hi guys, I'm currently studying from the book "Accelerated C++" and am stuck in this exercise

"Palindromes are words that are spelled the same right to left as left to right. Write a program to find all the palindromes in a dictionary. Next, find the longest palindrome.

My problem is, how do I get the entire word in the dictionary? Surely it isn't expecting me to input all the words by myself..

Last edited on Aug 29, 2014 at 4:20pm
Aug 29, 2014 at 4:37pm
You can input whatever words you want, the point is to make sure the program works as designed.
Aug 29, 2014 at 4:40pm
Ever think of downloading a dictionary file from the internet?
Google "download dictionary file"
Topic archived. No new replies allowed.