Hi,
My problem is like this
Main.cpp
static CommandList* commandList = 0;
static Networker* networker = 0;
...
void f1()
{
commandList->RunCommands();
}
void f2()
{
networker ->Listen();
}
in the class Networker class I want to call "commandList" functions and in the CommandList, I want to call "networker" functions
how to do this ?
I tried to find a solution with Google. I saw the forward declaration. It's maybe the solution but I don"t know what to change
Many thanks for your help