Alright I am writing a program that I need to give it the ability to have 2 seperate classes access eachother for example...
say I have class CUser and CChannel
they would look like this
Code:
class CUser
{
public:
 CChannel *ChannelList;
//functions here
}
and in a separate file I would have another class like this
Code:
class CChannel
{
public:
CUser *UserList;
//functions here
}
now if I try to include them to eachother with an ifndef in it so they do not go into an infinate loop it still doesnt declare them properly. Is there a way that I can get my classes to access eachother like this. Please help me out. and my main function by the way would pass the reference to each class