I have defined a struct in class. Then defined a function that returns address pointer type obj of struct it is working but when I created three file structure it is now giving an error "variable undefined" LIKE
/// header file
class A {
    struct b{
    };
    b *var;
public:
    b *&f1();
};
//// cpp file
b A:: *&f1()
{
    return var; /// here it gives an error saying "var undefined" 
}
can any one please help me :)
 
     
     
    