how to create a dynamic string array to store string items using new ...
vijaysoft1
0
Junior Poster in Training
Recommended Answers
Jump to PostBy "string" do you mean std::string or a character array?
Character array:
char *str = new char[1234];
Just replace 1234 with the desired length, which can be a variable.
All 2 Replies
Reply to this topic
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.