| | |
how to create a dynamic string array to store string items . plz
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Aug 2008
Posts: 6
Reputation:
Solved Threads: 1
you cannot dynamically change the size of an array, you can only create a new one and copy the old array, but i gues you could use poiters for you array holder like Ancient Dragon suggested, but thats tricky to manage, an easier option would be to use c++ vector to hold your dynamic array of strings. depending on whether all you'll do is to iterate through the list without, you could consider using a linked list array.
Hope this helps you more than confuse you.
Hope this helps you more than confuse you.
![]() |
Other Threads in the C++ Forum
- Previous Thread: c++ help function call
- Next Thread: Help with FOR LOOP problem
| Thread Tools | Search this Thread |
api array based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count database delete deploy desktop developer dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker list loop looping loops map math memory multiple news node number numbertoword output parameter pointer problem program programming project python random read recursion recursive reference rpg sorting string strings struct temperature template test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






