diff options
Diffstat (limited to '9p13.cpp')
-rw-r--r-- | 9p13.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/9p13.cpp b/9p13.cpp new file mode 100644 index 0000000..781f1e4 --- /dev/null +++ b/9p13.cpp @@ -0,0 +1,29 @@ +#include <iostream> +#include <vector> +#include <list> + +/* + * + * 9.13 + * + * + */ + +int main () { + + std::vector<int> vi(25, 50); + std::list<int> li(25, 99); + std::vector<double> vb1(vi.cbegin(), vi.cend()); + std::vector<double> vb2(li.cbegin(), li.cend()); + for(auto &a : vb1) { + std::cout << a << " "; + } + + std::cout << std::endl; + for(auto &a : vb2) { + std::cout << a << " "; + } + + std::cout << std::endl; + return 0; +} |