diff options
author | Oskar <[email protected]> | 2024-08-07 16:35:33 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-08-07 16:35:33 +0200 |
commit | a805c55e5b870ec3f65ce9dd5fdf6f5456a62ac3 (patch) | |
tree | 4a6a6a1635eb257b1c7a40943f0de23f4e5f456a /3p12.cpp | |
parent | cb72c34ff23c8c6c2e6b8376d1cf8a5ca5b9becb (diff) |
more exercises
Diffstat (limited to '3p12.cpp')
-rw-r--r-- | 3p12.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/3p12.cpp b/3p12.cpp new file mode 100644 index 0000000..ef46169 --- /dev/null +++ b/3p12.cpp @@ -0,0 +1,27 @@ +#include <iostream> +#include <vector> +#include "sales_data.hpp" +#include "sales_item.hpp" + +/* + * + * 3.12 + * + * + */ + +using std::string; +using std::cout; +using std::cin; +using std::cerr; +using std::clog; +using std::endl; +using std::vector; +int main () { + + vector<vector<int>> ivec; // A vector of vectors of int + //vector<string> svec = ivec; // Not valid, you can not initialize a vector of strings to with a vector of int. + vector<string> svec(10, "null"); // A vector of 10 objects of type string all initialized to "null" + + return 0; +} |