Hey,
i dont know how do search in google for this question so i decided to ask it here.
I am trying to do something like that.
it should only demonstrate my plan very easy. The variable size should only be used by an array of the class.
Does anybody knows how to do that ?
sorry for the mistake in the title
mfg Lazeboy
i dont know how do search in google for this question so i decided to ask it here.
I am trying to do something like that.
Code:
class A
{
private:
int variable;
};
int main()
{
A a[10];
for(int i = 0; i < a->size;i++)
a[i].variable = i;
}
Does anybody knows how to do that ?
sorry for the mistake in the title
mfg Lazeboy