| delorie.com/archives/browse.cgi | search |
| From: | umaveci0 <umaveci0 AT cc DOT umanitoba DOT ca> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | How do I allocate more memory for .exe? |
| Date: | Wed, 06 Oct 1999 14:48:49 -0500 |
| Organization: | University of Manitoba |
| Lines: | 14 |
| Message-ID: | <37FBA7A1.B7FAEBD6@cc.umanitoba.ca> |
| NNTP-Posting-Host: | merak.cc.umanitoba.ca |
| Mime-Version: | 1.0 |
| X-Trace: | canopus.cc.umanitoba.ca 939239330 5046 130.179.16.10 (6 Oct 1999 19:48:50 GMT) |
| X-Complaints-To: | Postmaster AT cc DOT umanitoba DOT ca |
| NNTP-Posting-Date: | 6 Oct 1999 19:48:50 GMT |
| X-Mailer: | Mozilla 4.06 [en] (X11; U; SunOS 5.6 sun4u) |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
I have an assignment in which I must write a program which solves a letter 'Jumble'. User types in some letters (rivfey, for example), all permutations (different combinations) of the letters are put into a vector ( vector<string> ) and each permutation is compared to another vector of strings containing about 20,000 words (a dictionary) to get the answer (verify). Problem is I run out of memory. Both vector<string> 's are big and solving a 6 letter Jumble causes the program to crash (5 is okay). I am referencing the vectors. How do I allow the program to use more memory? I'm using DJGPP in WIN95 and have 64Mb of RAM. Thanks.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |