For example, i have a struct and I'm using static function of class to initialize its members. how can i tell the complier that the class exists but it is defined after the structure S?
struct S
{
S()
{
x = C::GetX(); //static functions, GetX() and GetY()
y = C::GetY();
}
int x; int y;
};
class C
{
/.... /
}
Edit: I will also be using struct S in class C