delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/24/04:46:51

From: Schuster <Schuster AT eev DOT e-technik DOT uni-erlangen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allocation with pointer arrays and how to use them once I have.
Date: Fri, 20 Jun 1997 08:39:07 -0700
Organization: Lehrstuhl fuer Elektrische Energieversorgung
Lines: 23
Message-ID: <33AAA41B.7884@eev.e-technik.uni-erlangen.de>
References: <33AA0FAA DOT 7E19 AT fiveg DOT com>
NNTP-Posting-Host: eev6.e-technik.uni-erlangen.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi Dion!
I'm not quite sure if the following helps, but give it a chance
(though I tested it with a little program )...

Try changing 
>// global storage buffer
>char    *wordBuffer[50];
to 
char **wordbuffer;
wordbuffer = new char* [50];

Why don't you use the String class?
I always do (if I write in C++ ), it's much easier.


Hope this helps.

Michi
**********************************************
Michael Schuster
E-mail: Schuster AT eev DOT e-technik DOT uni-erlangen DOT de
Lehrstuhl fuer Elektrische Energieversorgung
http://www.eev.e-technik.uni-erlangen.de/

- Raw text -


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