fork download
  1. #include <iostream>
  2. #include <vector>
  3. #include <string>
  4.  
  5. using namespace std;
  6.  
  7. int main() {
  8.  
  9. std::vector<std::wstring> strVec;
  10. strVec.insert( strVec.end(), { L"black", L"white", L"red" } );
  11. strVec.insert( strVec.end(), { L"blue", L"green" } );
  12.  
  13. for(auto &i : strVec) {
  14. wcout << i << " ";
  15. }
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0s 3432KB
stdin
Standard input is empty
stdout
black white red blue green