summaryrefslogtreecommitdiff
path: root/c,cc
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-10-01 15:07:57 +0200
committerPatrick Simianer <p@simianer.de>2015-10-01 15:07:57 +0200
commit44cf8e0348e0023b3cf3b612c43273c7b35f5f5c (patch)
treeff7bafb35240c4abfce303be8f193f45f6ba091c /c,cc
parent46d547be7e16dc24383d74e33143beef42606382 (diff)
file index cc
Diffstat (limited to 'c,cc')
-rw-r--r--c,cc/file_index2
-rw-r--r--c,cc/file_index.cc29
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;
+}
+