64,682
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
using namespace std;
class A
{
private:
int a;
public:
class C
{
private:
int x;
public:
void ff();
};
//friend A::C;
};
void A::C::ff()
{
A a;
a.a = 1;
}
int main()
{
A::C c;
c.ff();
return 0;
}