1#include <iostream>
2#include <string>
3#include <vector>
4
5int main()
6{
7 std::string s = "Hello World!";
8
9 std::vector<char> v(s.begin(), s.end());
10
11 for (const char &c: v)
12 std::cout << c;
13
14 return 0;
15}
16
1std::vector<char> input({ 'a', 'b', 'c' });
2std::string s(input.begin(), input.end());