From 44cf8e0348e0023b3cf3b612c43273c7b35f5f5c Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Thu, 1 Oct 2015 15:07:57 +0200 Subject: file index cc --- c,cc/file_index | 2 ++ c,cc/file_index.cc | 29 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 c,cc/file_index create mode 100644 c,cc/file_index.cc 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 + * YYYY-MM-DD + */ + +#include +#include +#include +#include + +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; +} + -- cgit v1.2.3