summaryrefslogtreecommitdiff
path: root/2p18.cpp
diff options
context:
space:
mode:
Diffstat (limited to '2p18.cpp')
-rw-r--r--2p18.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/2p18.cpp b/2p18.cpp
new file mode 100644
index 0000000..845ac8e
--- /dev/null
+++ b/2p18.cpp
@@ -0,0 +1,23 @@
+#include <iostream>
+#include "sales_item.hpp"
+
+/*
+ *
+ * 2.18
+ *
+ *
+ */
+
+int main () {
+
+ int myval = 10;
+ int *point = nullptr;
+ std::cout << "myval: " << myval << std::endl;
+ point = &myval;
+ *point = 1000;
+ std::cout << "myval: " << myval << "\n*point: " << *point
+ << "\npoint: " << point << "\n&myval: " << &myval
+ << std::endl;
+
+ return 0;
+}