www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/07/18:49:52

Message-ID: <010f01be98da$97400400$88275da6@siegfried>
From: "John L Meyer" <john_meyer AT geocities DOT com>
To: <djgpp AT delorie DOT com>
References: <Pine DOT BSF DOT 3 DOT 96 DOT 990507090735 DOT 15546B-100000 AT studenti DOT ing DOT unipi DOT it>
Subject: Re: Using pointers
Date: Fri, 7 May 1999 16:40:20 -0600
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019