I already did.
Type: Posts; User: dlorde
I already did.
The whole loop is wrong, but that's not the problem.
LOL! for someone who keeps changing their mind :D
You'll declare those arrays static so they are shared by the patients - the way it is, every patient will have their own arrays with only their own details in them.
You could try what I...
Because you don't store the name and gender to the name and gender fields in the patient constructor - you add them to an array for some unexplained reason (why would a patient need multiple names...