vector to char array c++
std::vector<char> input({ 'a', 'b', 'c' });
std::string s(input.begin(), input.end());
4.33
3
std::vector<int> vec {1, 2, 3};
const int* = vec.data();
Thank you!
3
0
Are there any code examples left?
New code examples in category C++