Whats the best way to removes values from array of strings? Is it better to create a new array of strings or is there some way to remove them?
COKEDUDE
27
Junior Poster in Training
Recommended Answers
Jump to PostPretty easy. Set the array to a nul string and deal with it in your code.
BTW, this is usually done in a linked list or say, a string library function but for me, I've used the old nul means no string here method for a very very long time.
…
Jump to PostSeems like the answer to this question is "It depends", as it is with lots of questions. Linked list versus array? It depends. Move thousands of bytes of memory versus a new array and a big deep copy versus some clever pointer manipulation versus... It depends. On a lot of …
All 7 Replies
rproffitt
2,580
"Nothing to see here."
Moderator
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
COKEDUDE
27
Junior Poster in Training
COKEDUDE
27
Junior Poster in Training
rproffitt
commented:
Item 1. But Code Police may issue a ticket.
+14
COKEDUDE
27
Junior Poster in Training
rproffitt
2,580
"Nothing to see here."
Moderator
AssertNull
1,094
Practically a Posting Shark
rproffitt
commented:
Mr. Monk version: "Zero, zero, zero, zero...."
+0
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.