Need advice for creating a program to practice spelling words.

Im a college student who has just took an introduction class on C++ programming in the spring and I'm tring to write a program in between semesters to keep my mind on the subject. What I'm tring to write is a win32 console application that can read in a list of spelling words from a text file and then display the words one at a time for a few seconds before clearing of the screen and allowing the student to try spelling the word. I am familure with input from a file, so I guess my first queastion would be, would it be best to read one word from the file and ask the user to spell that word before reading another one from the file or would it be best to read all the words from the file and store them into an array or 2D-array. Thanks to all who took the time to read this request for advice.
For your purposes, either will work just fine. Reading everything into an array up front will give
you practice with arrays.

From a professional software development standpoint, I'd probably not do that, because the
memory efficiency of the algorithm is linear, and linear is not scalable. (What this means is
that the amount of memory required to store the data is linear with respect to the number of
words in the file. As the file grows, you need more and more memory. File sizes can easily
grow to beyond the capacity of RAM, meaning that the program would no longer work.)
Topic archived. No new replies allowed.