CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
#include<iostream>
#include<algorithm>
#include<iterator>
#include<vector>
#include<cstdlib>
int main(void){
std::string s{"0123456789abcdef"};
std::vector<char> v;
std::copy(s.begin(),s.end(),std::back_inserter(v));
std::copy(v.begin(),v.end(),std::ostream_iterator<char>(std::cout,"\n"));
return EXIT_SUCCESS;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run