im writing program supposed to manage conference , i need at the beginning to allow the user of this system to register as members , then they can log in and using the facilities in the system , what i need is the way to assign IDs to these members after they register.
i have class for user contain method register , so any user object can use this method to register , after that he will be member , at member class which inherit the user class , there is additional attribute named ID , this ID value should be assigned using the system , how ? what is the function ? any idea ?
ID must be unique
student1.course is just pointing to (I'm assuming) an instance of Course that was created in the registerCourse() function. If you want to access the members use this notation:
i wonder how you can get access to Student fields?if you want to print information about Student make a method print or etc..
or you can overload << operator. but don't forget do it in Course class too
Thank u all .
Texan40 , it works correctly now , i know i face troubles in understanding pointers .
mike2718, thank u very much it was helpful idea , thank u all .
i hope 1 day i can be professional like u and i can help others.