I attempted to do this using a pointer to a specific data
type, say int:
int* x;
then i created a single dimension array to hold the columns
x = new * int [10] // this gives me an error for the *
I wouldn't know any other way to create an array of
pointers?!?
then I would use a for loop to traverse the rows:
for (int i = 0; i < 10; i++)
{
x[10] = new int [10];
}
to me, this should create a 10x10 2D array...please find
my error in thinking, this is really frustrating
thanks
rummy
type, say int:
int* x;
then i created a single dimension array to hold the columns
x = new * int [10] // this gives me an error for the *
I wouldn't know any other way to create an array of
pointers?!?
then I would use a for loop to traverse the rows:
for (int i = 0; i < 10; i++)
{
x[10] = new int [10];
}
to me, this should create a 10x10 2D array...please find
my error in thinking, this is really frustrating
thanks
rummy