![]() |
#2
lonmaor2012-06-13 18:36
|
class out
{
public:
int a,b;
class in
{
public:
int a,b;
in(int x,int y)
{
a=x;b=y;
}
}
out(int x,int y)
{
a=x;b=y;
}
in inner;
}
void main()
{
test my_test(1,2);
my_test.inner(3,4);
}
请问错误出在哪里?如何调用嵌套类?