summaryrefslogtreecommitdiff
path: root/9p19.cpp
diff options
context:
space:
mode:
Diffstat (limited to '9p19.cpp')
-rw-r--r--9p19.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/9p19.cpp b/9p19.cpp
new file mode 100644
index 0000000..6c47476
--- /dev/null
+++ b/9p19.cpp
@@ -0,0 +1,25 @@
+#include <iostream>
+#include <list>
+
+/*
+ *
+ * 9.19
+ *
+ * Changes needed: Include list, Change deque in to list.
+ */
+
+int main () {
+
+ std::string input;
+ std::list<std::string> ds;
+ while(std::cin >> input) {
+ ds.push_back(input);
+ }
+
+ for(auto cbeg = ds.cbegin() ; cbeg != ds.cend() ; ++cbeg) {
+ std::cout << *cbeg << " ";
+ }
+
+ std::cout << std::endl;
+ return 0;
+}