Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

****** Need HELP!

Status
Not open for further replies.

DaniDak

Technical User
Mar 13, 2002
44
US
Hi,
How do I copy multiple multi-word strings from a linked-list to a dynamiclly sized string array.(using <string> not <cstring>)

I allready have a linked-list with 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.

thank you

 
Which of the following describes your problem

1) You have a list<string> and you wish to copy it into a char*[]
2) You have a list<string> and you wish to copy it into a string[]

Not really sure whether you are using string to mean string or whether it means char* sometimes.
 
Yes, I have a list<string> and I need to copy it into a char*[] that is dynamiclly allocated.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top