Hi,
This is prity basic question but I am a little stuck with it. I have a class with a member variable in it. There are three files, say a, b and c.
in file b.cpp -
class b
{
public:
-----
-----
int i;
}
in file c.cpp -
int callbvariable()
{
int w;
i = w // here I have to call the b member variable
}
// some other class
-----
Both file are than included in the a.cpp file and class b is initialized. Now I don't understand how do I get the pointer of the class b in the function callbvariable()?
Thanks in advance,
Regards.