| 1 |
#include <iostream> |
| 2 |
#include <string> |
| 3 |
#include <functional> |
| 4 |
#include <numeric> |
| 5 |
using namespace std; |
| 6 |
|
| 7 |
int main(int argc, char **argv) |
| 8 |
{ |
| 9 |
string result = |
| 10 |
accumulate(argv, argv + argc, string{}, plus<string>()); |
| 11 |
|
| 12 |
cout << "All concatenated arguments: " << result << '\n'; |
| 13 |
} |