Inheritance

Hi!

I'm having trouble with multiple inheritance. I'm supposed to write a program for chatrooms, the situation being this:
-A chatroom contains a name, a list of users, an administrator and a list of messages. It can be either private, requiring a password, or open.
-A user has a name and possibly a password.
-An adminstrator is a user that in addition has a list of chatrooms that he is adminstrating.

My problem is that a chatroom contains an administrator, but an administrator also contains a list of chatrooms! How can I solve this?
My first idea has to do like for struct which allows me to predefine administrator so that I can use administrators in the definition of a chatroom structure. But I don't think this works for classes (I can't write class Admin; and then include an Admin-vector in a chatroom)?

Thank you in advance for your help!
Topic archived. No new replies allowed.