diff options
author | Oskar <[email protected]> | 2024-10-12 15:06:05 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-10-12 15:06:05 +0200 |
commit | 428d857359b5d8b639ca41b03ca8fc8b3d143a50 (patch) | |
tree | 6c6291c2404386673ef6cd65ad435374e519d35b /9p19.cpp | |
parent | f46aaa42631113d83bc211a9db4f85ef68afdc92 (diff) |
more
Diffstat (limited to '9p19.cpp')
-rw-r--r-- | 9p19.cpp | 25 |
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; +} |