diff options
author | Oskar <[email protected]> | 2024-10-09 16:55:14 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-10-09 16:55:14 +0200 |
commit | 12f648998464e7820e2be633e4d999c285047bce (patch) | |
tree | e596da0ae5017c139da37a88ffb4f9b595a7e03b /9p14.cpp | |
parent | e06a1fdebe095ad46b0607297f78077fccb11db1 (diff) |
more
Diffstat (limited to '9p14.cpp')
-rw-r--r-- | 9p14.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/9p14.cpp b/9p14.cpp new file mode 100644 index 0000000..f4344c3 --- /dev/null +++ b/9p14.cpp @@ -0,0 +1,28 @@ +#include <iostream> +#include <list> +#include <vector> + +/* + * + * 9.14 + * + * + */ + +int main () { + + std::list<const char*> lcp = {"a","asjksd","skjk333","dkowdkjfdkjfd","wwdfsd", "eeeeeeee", "1253653463"}; + std::vector<std::string> vs; + vs.assign(lcp.cbegin(), lcp.cend()); + for(auto &a : lcp) { + std::cout << a << " "; + } + + std::cout << std::endl; + for(auto &a : vs) { + std::cout << a << " "; + } + + std::cout << std::endl; + return 0; +} |