I am creating an address book that can hold 50 entries. I'm not sure how to modify my exiting program to include an array. Any suggestions would be greatly appreciated.
It doesn't look like you've defined what MaxRecord is. Assuming it's not a type of some kind, I assume it is supposed to be the variable name for your array. So, this code will yield a compile-time error: const MaxRecord[50]
You need to give your array a type. Is it an array of integers? Or an array of strings? Or an array of some class of objects that you've defined? We can't tell. If an integer, it should be:
int MaxRecord[50]
This creates an uninitialized array of integers. If it's supposed to be an array of string class objects:
string MaxRecord[50]
Make sense?
Also, if the elements of the array aren't const , then you don't need const.
Lastly, I don't see where you've defined what a entryType is, so your compiler will likely complain about this too.
entryType is declared in my header file.
I'm just confused on what I would need to change in my open file and main menu function in order to properly execute the array. Everything in else in my code is declared in other functions.