Answers for "char vector to string c++"

C++
0

char vector to string c++

std::vector<char> input({ 'a', 'b', 'c' });

std::string s(input.begin(), input.end());
Posted by: Guest on June-15-2020

Browse Popular Code Answers by Language