Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

array 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: #array #string
ADD COMMENT
Topic
Name
6+3 =