Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

string vector to string c++

#include <vector>

std::string array_to_string(const std::vector<std::string>& string_array)
{
    std::string ret_string;
    for (const std::string& s : string_array) ret_string.append(s);
    return ret_string;
}
 
PREVIOUS NEXT
Tagged: #string #vector #string
ADD COMMENT
Topic
Name
8+9 =