home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!charnel!rat!usc!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!yale!mintaka.lcs.mit.edu!ai-lab!hal.gnu.ai.mit.edu!bobs
- From: bobs@hal.gnu.ai.mit.edu (Bob Sutton)
- Newsgroups: comp.lang.c++
- Subject: C++ problem
- Message-ID: <1k86v3INNjsm@life.ai.mit.edu>
- Date: 28 Jan 93 08:53:55 GMT
- Organization: /etc/organization
- Lines: 22
- NNTP-Posting-Host: hal.ai.mit.edu
-
- I could use a bit of help with a C++ program I've been working on. This
- problem has been crashing my PC. I have traced it to one line of code.
- However, I'm puzzled as to the reason why this line is bad.
-
- Given the following declaration:
-
- Window **WindowList;
-
- where 'Window' is a C++ class, shouldn't
-
- WindowList=(new Window **) [n];
-
- allocate off the heap an array of n (Window *) pointers? Apparently,
- Turbo C++ isn't doing this.
-
- Any help would be appreciated via email.
-
- --
- Bob Sutton Love, most bitterly and fiercely oppresses
- bobs@gnu.ai.mit.edu those who fight it than those who offer
- al876@cleveland.freenet.edu their servitude. -- Ovid, "Amores".
- rsutton@eis.calstate.edu
-