fork(2) download
  1. #include <iostream>
  2. #include <numeric>
  3. #include <vector>
  4. #include <string>
  5.  
  6. int main()
  7. {
  8. std::vector<std::string> v {"alpha", "beta", "gamma"};
  9. std::string s = std::accumulate(std::begin(v), std::end(v), std::string{});
  10. std::cout << "s = \"" << s << '"' << std::endl;
  11. }
  12.  
Success #stdin #stdout 0s 3276KB
stdin
Standard input is empty
stdout
s = "alphabetagamma"