Hello please help me
class X
{
protected:
int x,y;
color cl;
X-type type;
char a;
};
-----------------------------
X* arr[10][10];
int main()
{
...
}
------------------------------
i want define a constructor to this class that declare for x, y like:
arr[2][1]->x=2;
and
arr[2][1]->y = 1;
that declare any of arr[10][10] like above object
how can i do this?