Nested classes inside one class (C++)# Programming - 葵花宝典
s*e
1 楼
Want to have the following definitions:
class Foo
{
private:
class FooA
{
};
struct FooB
{
int x_;
FooA *p_;
}
}
Do you know how to make the above definition possible, basically, how to make
FooA is accessible from FooB? Thanks a lot.
class Foo
{
private:
class FooA
{
};
struct FooB
{
int x_;
FooA *p_;
}
}
Do you know how to make the above definition possible, basically, how to make
FooA is accessible from FooB? Thanks a lot.