Hey everyone, so I have a program and function i'm having an issue understanding. Here is what it's doing in the main.
1 2 3 4 5 6 7
So it is creating a linked list object using the MemberDO class type which has a int, string, char and double. Then it will call the readFromFile static function in the MemberDO. So this is where my problem is I have this function
Awesome, thanks! I was actually doing my while loop like that but I guess I didn't think I had to define those types again so when I was putting the actual variable names from MemberDO it was giving me an error. If you can clarify for me why do I need to make the int, string, char, double over again? I know they are private but isn't it technically still part of the class, can't it use those private vars?
Edit: is it because the function is static that it can't use those vars in the private memberDO?