S
shuisheng
Dear All,
Would you please help me to look at this case?
// "CA.h"
class CA
{
};
// "CA.cpp"
CA a;
// "CB.h"
extern CA a;
class CB
{
public:
// fun() use global data a.
void fun()
{
....
a.fun();
....
}
};
I think this is ok, but the compiler gives me lots of error.
Anybody can help me to correct it?
Thanks,
Shuisheng
Would you please help me to look at this case?
// "CA.h"
class CA
{
};
// "CA.cpp"
CA a;
// "CB.h"
extern CA a;
class CB
{
public:
// fun() use global data a.
void fun()
{
....
a.fun();
....
}
};
I think this is ok, but the compiler gives me lots of error.
Anybody can help me to correct it?
Thanks,
Shuisheng