summaryrefslogtreecommitdiff
path: root/iterator-test-2.cpp
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-08-10 23:07:32 +0200
committerOskar <[email protected]>2024-08-10 23:07:32 +0200
commit2ecf623735023e8fc2a4029e4653f0bd591e6052 (patch)
tree39ded673699098ea0c14d78101212127e2581729 /iterator-test-2.cpp
parent97df48a5d420072c1ed487b7d5306d1665e692db (diff)
more
Diffstat (limited to 'iterator-test-2.cpp')
-rw-r--r--iterator-test-2.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/iterator-test-2.cpp b/iterator-test-2.cpp
new file mode 100644
index 0000000..7b6d791
--- /dev/null
+++ b/iterator-test-2.cpp
@@ -0,0 +1,29 @@
+#include <iostream>
+#include <vector>
+#include "sales_data.hpp"
+#include "sales_item.hpp"
+
+/*
+ *
+ * Just a little test, had to clear something up in my head
+ *
+ *
+ *
+ */
+
+using std::string;
+using std::cout;
+using std::cin;
+using std::cerr;
+using std::clog;
+using std::endl;
+using std::vector;
+int main () {
+
+ vector<int> nums = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20};
+ auto iter = nums.begin();
+ iter += 10;
+ cout << "nums content: " << *iter << endl;
+ cout << "subscr content: " << nums[10] << endl;;
+ return 0;
+}