Question: So basically I need to recursively write a function in C++ that will go into a .txt file and do the following: int readDictionary(istream &dictfile,

So basically I need to recursively write a function in C++ that will go into a .txt file and do the following:

int readDictionary(istream &dictfile, string dict[]);

Places each string in dictfile into the array dict. Returns the number of words read into dict. This number should not be larger than MAXDICTWORDS since that is the size of the array.

MAXDICTWORDS is the maximum number of words in my words.txt file which is 3000.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To achieve the goal of recursively reading words from a text file into an array lets break down the task StepbyStep Solution 1 Define Constants and In... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!