I'm working on a project for school, and have a question. For the sake of clarity, let's say I have two functions:
1. int main() //reads a word from file
2. void ReadFile() //stores contents of a file in an array
In main(), I have to see if the word I pulled from the file exists in the array in ReadFile(). My problem, is I don't know how to access the array in ReadFile() from main() since ReadFile() is of type void (a requirement) and since I can't use reference parameters or pointers.
Please let me know if you have any ideas on how to access this data.