Original Post
hi,
Here is my problem:
I have two classes: Garden and Cell. the garden class has a set of 100 * 100 cells. How could I define that?
I would like to use a pointer to a cell in the Garden class. So
my class Garden
Class Garden
{
Private:
...
Cell* pcell;
}
//constructor
Garden()
{
//what should I write here to create an array of 100 * 100 cells.
}
here my class cell
Class Cell
{
Public:
//constructor
Cell()
{
val1=0;
val2=0;
}
int GetVal1()
{
return val1;
}
}
thank you for any help you can give
zip7000