P
Pat
Hi,
I want to use "new" to build an array test[1000][1000]. Can you tell me how
to do?
Thank.
Pat
I want to use "new" to build an array test[1000][1000]. Can you tell me how
to do?
Thank.
Pat
Pat said:I don't want to use "int test[1000][1000]".
Thanks.
Pat said:Hi,
I want to use "new" to build an array test[1000][1000]. Can you tell
me how to do?
Thank.
Pat
Pat said:I want to use "new" to build an array test[1000][1000]. Can you tell me how
to do?
Pat said:Hi,
I want to use "new" to build an array test[1000][1000]. Can you tell me how
to do?
Hi,Pat said:Hi,
I want to use "new" to build an array test[1000][1000]. Can you tell me how
to do?
Thank.
Pat
* "TJB said:Pat said:I want to use "new" to build an array test[1000][1000]. Can you tell me
how to do?
You have to create an array of arrays like this:
int i,**test;
test = new int*[1000];
for (i = 0; i < 1000; i++)
test = new int[1000];
You could also start with an array of pointers, int* test[1000], and
initialize the elements in it.
osmium said:Pat writes:
int(*a)[4] = new int[3][4];
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.