| | |
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 arrays based beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete deploy developer dll download dynamiccharacterarray email encryption error file forms fstream function functions game getline givemetehcodez graph gui homeworkhelp homeworkhelper iamthwee ifstream input int java lib linker list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference rpg sorting string strings temperature template text text-file tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






