Posted by casedeis@xxxxxx.xxx (Case Deis) on 1999-05-06
Kory,
I had a problem similiar to yours. I had to store several strings in =
memory. The solution someone suggested to me, was to use a structure. =
Here is a structure similiar to the one I used:
struct Strings{
char String1[10];
char String2[10];
char String3[10];
};
Then you could declare an array of structures: Strings Token[20];
Maybe this could be an acceptable alternative solution? Also, the book =
I've been reading, suggests using "new" for dynamic memory allocation =
over using malloc() when coding C++. Thought I'd pass along that tidbit =
of information.
Shrapnel
Previous post | Next post | Timeline | Home