Question about friend in C++# Programming - 葵花宝典
l*e
1 楼
to define A:Func1 as a friend function of class B, can we seperate the
declaration of A and B in different files?
I know the following codes work, but it uses forward declaration and
mandates the declaration of A and B exist in the same source file. Is there
any way to seperate the declaration of A and B into two header files?
declaration of A and B in different files?
I know the following codes work, but it uses forward declaration and
mandates the declaration of A and B exist in the same source file. Is there
any way to seperate the declaration of A and B into two header files?