summaryrefslogtreecommitdiff
path: root/3p41.cpp
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-08-15 17:26:06 +0200
committerOskar <[email protected]>2024-08-15 17:26:06 +0200
commitbec90eeec483f4fd685bb28758cdf55897bc0b3e (patch)
tree2e6199d7f62768937b3d480de905af3d537770d5 /3p41.cpp
parent19f1a70edbf2b08536c114e12f7b3c1e77469730 (diff)
more exercises and tests
Diffstat (limited to '3p41.cpp')
-rw-r--r--3p41.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/3p41.cpp b/3p41.cpp
new file mode 100644
index 0000000..4ae2247
--- /dev/null
+++ b/3p41.cpp
@@ -0,0 +1,24 @@
+#include <iostream>
+#include <vector>
+#include "sales_data.hpp"
+#include "sales_item.hpp"
+#include <iterator>
+
+/*
+ *
+ * 3.41
+ *
+ * Same thing as i did on my vec-arr-test.cpp
+ */
+
+int main () {
+
+ int arr[] = {23,432423,43253,123,787,45677,3345,657784,3453};
+ std::vector<int> va(std::begin(arr), std::end(arr));
+ for(auto vaa : va) {
+ std::cout << vaa << " ";
+ }
+
+ std::cout << std::endl;
+ return 0;
+}