Original Post
Hi guys,
I have the following problem, lets say you have the following code.
class test
{
int testvar;
class test2
{
int testfunc();
}
}
test::test2::testfunc()
{
testvar = 3;
return;
}
when you try to compile, it will not let you change testvar, as it says that it is not yet declared!
Is there a way to access the variable, without handing it to the function as a parameter?
Thanks,
MK83