Thanks for your reply Elad...
Quote:
I presume cust to be a user defined type with data members of:
Yes, this is correct.
Quote:
The task as I interpret it is to read customer data from a file to fill an array of cust in the program.
correct again.
Quote:
The file apparetly contains how many cust records are in the file, but you have chosen to ignore that information and made the array of cust a fixed size of 50. You could use the information read in to dynamically create the array of cust to the exact size of numrecs if you want.
I'm trying to figure out how to do that...
Quote:
You should use custFile, not cust to read in the information from the file in the while loop.
This was just a typo on my part, I am using custFile.
Quote:
In the set function, the arguments should just be FirstName or ChkId or PIN_num or whatever, so drop the terminal [x] from the parameter.
Ok, I'm having a hard time figuring out how to do this. I can't just drop the [x], I need to revise the code. Can you give me an example??