Mail Archives: djgpp/1999/05/07/18:49:52
No, I don't think you can get around the static array limitation that way.
In fact, you have to declare int pointers like this:
int *myptr = new int[MAXBUFF];
Correct me if I'm wrong. I'm begging you.
John Meyer
USC Today Life & Leisure Editor
e-mail: john_meyer AT geocities DOT com
Of course, I have no evidence for this, but when has that stopped me before?
----- Original Message -----
From: GiovanniB <s206756 AT studenti DOT ing DOT unipi DOT it>
Newsgroups: comp.os.msdos.djgpp
To: <djgpp AT delorie DOT com>
Sent: Friday, May 07, 1999 1:14 AM
Subject: Using pointers
>
> When I declare a pointer (i.e. int* myptr) it's possible to use it in
> this way :
> for(int i = 0; i < n; i++)
> {
> myptr[i] = somenumber;
> }
> where n is a number big than biggest int ?
>
> Thanks for help.
>
- Raw text -