A
Aff@n
hi,
i wold like to ask, why is it when overloading operator[] we send int
value is there any way around?.
e.g.
class abc
{
protected:
int *a;
private:
int operator[](int );
};
int abc:perator[](int x)
{
int z;
z=a[x];
return z;
};
i wold like to ask, why is it when overloading operator[] we send int
value is there any way around?.
e.g.
class abc
{
protected:
int *a;
private:
int operator[](int );
};
int abc:perator[](int x)
{
int z;
z=a[x];
return z;
};