string Arr[] = {"123", "123456", "12345", "12", "1"}; vector<string> vecStr(Arr, Arr + sizeof(Arr)/sizeof(string)); for (size_t i = 0, sz = vecStr.size(); i != sz; ++i) vecStr.push_back(vecStr[i]);
string Arr[] = {"123", "123456", "12345", "12", "1"}; vector<string> vecStr(Arr, Arr + sizeof(Arr)/sizeof(string)); for (size_t i = 0, sz = vecStr.size(); i != sz; ++i) vecStr.push_back(vecStr[i]);