www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/04/20:31:46

Message-ID: <38EA71BA.73EDDF0@hotmail.com>
From: Andrew Hakman <hakmana AT hotmail DOT com>
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: arrarys
References: <5ZtG4.648$OR3 DOT 8963 AT typhoon DOT nyroc DOT rr DOT com>
Lines: 13
Date: Tue, 04 Apr 2000 22:50:41 GMT
NNTP-Posting-Host: 142.13.16.203
X-Trace: typhoon.mbnet.mb.ca 954888641 142.13.16.203 (Tue, 04 Apr 2000 17:50:41 CDT)
NNTP-Posting-Date: Tue, 04 Apr 2000 17:50:41 CDT
Organization: MBnet Networking Inc.
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Im not super duper familiar with them, but it sounds like you need a vector
instead of an array (should resise itself as necessary)

#include<vector>  I think should do the trick

Andrew

Bob wrote:

> if a array is delcared such as "int number[19];"
> is there anyway to later change it so that it keeps all of the original
> values but can hold an addition 1,5,or any addition numbers?

- Raw text -


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