#include <iostream>
#include <vector>
#include <string>
using std::cout;
using std::endl;
using std::vector;
using std::string;
void print(const vector<string> &vec)
{
for (auto s : vec) {
cout << s << endl;
}
}
int main()
{
vector<string> vec{ "c++", "java", "php" };
print(vec);
return 0;
}
/*
run:
c++
java
php
*/