Message-ID: <353D613B.D502B628@home.com> From: "Edward F. Sowell" MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: PLEASE help with vectors! References: <353d29bc DOT 235411 AT news DOT ziplink DOT net> Content-Type: multipart/mixed; boundary="------------875B59156665018205FE1562" Lines: 58 Date: Wed, 22 Apr 1998 03:16:34 GMT NNTP-Posting-Host: cc984399-a.flrtn1.occa.home.com NNTP-Posting-Date: Tue, 21 Apr 1998 20:16:34 PDT Organization: @Home Network To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk This is a multi-part message in MIME format. --------------875B59156665018205FE1562 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I'm not clear on exactly what you are trying to do, but I think you need new, as in int *a= new int[n]; something like this can be in a constructor for a class and probably for a struct. If you cuold post a small example with explanation of what it is supposed to do someone might be able to correct it for you. Ed Sowell Jeff W./DMT wrote: > > I've tried searching through DejaNews multiple times looking for the > answer, but haven't found one that worked yet, and I also tried > posting a few times too. Anyways, I have a struct that contains 4 > data members each of another struct type. I need a 2D array that can > change size on the fly, i.e. maybe one minute I need a 2x2 array, and > then 4 minutes later I need a 7x2 array, and then a 500x24 array. I > know that in normal C++ you can use the vector template and use the > resize command, however, there isn't a resize command in DJGPP. I > vaguely remember something about using push_back(), but can't recall > it. Soooo, can anyone help me? Remember, I'm using a 2D array. > Thanks! > --Jeff W. > > "The finding of DMT in normal human body fluids > opens up interesting moral and legal questions. > Since DMT is illegal, as is 'any substance, compound > or mixture' containing DMT, it would seem that we > are all guilty of possesion of a controlled substance" > -Jonathon Ott > > My weird, trippy page: > http://www.geocities.com/SunsetStrip/Alley/3450/index.html --------------875B59156665018205FE1562 Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Edward F. Sowell Content-Disposition: attachment; filename="vcard.vcf" begin: vcard fn: Edward F. Sowell n: Sowell;Edward F. adr;dom: 1207 N. Van Buren St.;;;Placentia;California;92870; email;internet: sowelled AT home DOT com tel;work: 714-278-3291 tel;fax: 714-278-7168 x-mozilla-cpt: ;0 x-mozilla-html: FALSE version: 2.1 end: vcard --------------875B59156665018205FE1562--