#include <iostream>
#include <vector>
#include <list>
int main()
{
std::list<std::string> lst = { "c++", "python", "c", "c#", "php" };
std::vector<std::string> vec(lst.size(), "");
copy(lst.begin(), lst.end(), vec.begin());
for (const auto &str : vec)
std::cout << str << "\n";
}
/*
run:
c++
python
c
c#
php
*/