Convert char** (c) of unknown length to vector<string> (c++) [duplicate]
问题 This question already has answers here : converting an array of null terminated const char* strings to a std::vector< std::string > (4 answers) copying c array of strings into vector of std::string (4 answers) Closed 6 years ago . How would one go about converting a C char** to a C++ vector? Is there some built-in functionality one can utilize to do this, or is it better to accomplish it through a series of iterative steps? EDIT: For various reasons, the number of elements in the C array is