I tried moving the *s around, putting them on a[i], taking them back off, etc. nothing has worked... All it did was change when the segfault happened. What am I doing wrong?
--EDIT--
I also tried *a = new char[num][80] and *a = new *char[num] to no avail.
If I use what is written above, and only choose to write 1 string, it works fine.
Last edited by winrawr; Feb 8th, 2009 at 3:36 pm. Reason: addendum
I have no idea... I just thought **a was the same as a[][], like a two dimensional character array, an array of strings, etc.
I'm not sure what I did wrong, I'm not totally literate with using pointers yet
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.