After reading the section on friend functions and claases, I know that when u declare a firend class, u must cite explicitely:
But would anyone please tell me the difference between the flollowing lines of code while defining class B? Thanks a lot!Code:class A ; // forward declaration
class B {
friend class A ;
public:
...
...
} ;
Code:class B {
friend class A ;
public:
...
...
} ;
class B {
friend A ;
public:
...
...
} ;