Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

char vector to string c++

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

std::string s(input.begin(), input.end());
Source by www.techiedelight.com #
 
PREVIOUS NEXT
Tagged: #char #vector #string
ADD COMMENT
Topic
Name
3+4 =