diff options
author | Oskar <[email protected]> | 2024-10-08 23:37:52 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-10-08 23:37:52 +0200 |
commit | e06a1fdebe095ad46b0607297f78077fccb11db1 (patch) | |
tree | 2c10701caf940f22caa00f4d748b715f1bff4eb3 /9p13.cpp | |
parent | 62b5afc0bdff7fe33a347ab53a83e02d9f04f97e (diff) |
more
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; +} |