diff options
-rw-r--r-- | c,cc/file_index | 2 | ||||
-rw-r--r-- | c,cc/file_index.cc | 29 |
2 files changed, 31 insertions, 0 deletions
diff --git a/c,cc/file_index b/c,cc/file_index new file mode 100644 index 0000000..b36d133 --- /dev/null +++ b/c,cc/file_index @@ -0,0 +1,2 @@ +1 2 3 +4 5 6 diff --git a/c,cc/file_index.cc b/c,cc/file_index.cc new file mode 100644 index 0000000..c6ec334 --- /dev/null +++ b/c,cc/file_index.cc @@ -0,0 +1,29 @@ +/* + * template.cpp + * + * Patrick Simianer <p@simianer.de> + * YYYY-MM-DD + */ + +#include <iostream> +#include <string> +#include <vector> +#include <sstream> + +using namespace std; + + +int main(int argc, char const* argv[]) +{ + string line; + while (getline(cin, line)) { + istringstream ss(line); + size_t e; + while (ss >> e) { + cout << e << endl; + } + } + + return 0; +} + |