Hi Everyone,
I apologise if this is covered in the FAQ, I did look, but nothing
actually stood out to me as being relative to my subject.
I want to create a 2 dimensional array, a 'array of strings'. I already
know that no individual string will be longer than 50 characters. I just
don't know before run time how many elements of the array will be needed.
I have heard it is possible to dynamically allocate memory for a 2
dimensional array as long as the size of the 2nd element is shown. Is
this correct? And if so could someone post a simple example for me, to
base my own code off.
Thanks
--
------
Materialised
perl -e 'printf "%silto%c%sck%c codegurus%corg% c", "ma", 58, "mi", 64,
46, 10;'
I apologise if this is covered in the FAQ, I did look, but nothing
actually stood out to me as being relative to my subject.
I want to create a 2 dimensional array, a 'array of strings'. I already
know that no individual string will be longer than 50 characters. I just
don't know before run time how many elements of the array will be needed.
I have heard it is possible to dynamically allocate memory for a 2
dimensional array as long as the size of the 2nd element is shown. Is
this correct? And if so could someone post a simple example for me, to
base my own code off.
Thanks
--
------
Materialised
perl -e 'printf "%silto%c%sck%c codegurus%corg% c", "ma", 58, "mi", 64,
46, 10;'
Comment