Hi,
Can anyone show me how to copy multiple multi-word strings from a linked-list to a dynamiclly sized string array.
I allready have a linked-list with multi-word strings in it, I need to create an array of strings of the exact size needed (dynamically allocated using new), copy the strings to the array from the linked-list.
I know that their is two ways to do it.
1. copy string into a char*[]
2. copy string into a string[]
after I have copied the strings into the array I need to be able to sort and search the array.
thank you
Can anyone show me how to copy multiple multi-word strings from a linked-list to a dynamiclly sized string array.
I allready have a linked-list with multi-word strings in it, I need to create an array of strings of the exact size needed (dynamically allocated using new), copy the strings to the array from the linked-list.
I know that their is two ways to do it.
1. copy string into a char*[]
2. copy string into a string[]
after I have copied the strings into the array I need to be able to sort and search the array.
thank you