summaryrefslogtreecommitdiff
path: root/3p9.cpp
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-08-05 20:57:13 +0200
committerOskar <[email protected]>2024-08-05 20:57:13 +0200
commit4483699cc8cc937cb27040cfbd809b8a90029391 (patch)
tree6edbe3e65d3c922c535078161b35d0892e6d34ec /3p9.cpp
parent1d105b91b9678ffaa8eddea2218ed1789f5be27c (diff)
more exercises
Diffstat (limited to '3p9.cpp')
-rw-r--r--3p9.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/3p9.cpp b/3p9.cpp
new file mode 100644
index 0000000..25077ce
--- /dev/null
+++ b/3p9.cpp
@@ -0,0 +1,25 @@
+#include <iostream>
+#include "sales_data.hpp"
+#include "sales_item.hpp"
+
+/*
+ *
+ * 3.9
+ *
+ * Program does compile but not sure if valid. It has a size of 0 so its probably undefined behavior.
+ */
+
+using std::string;
+using std::cout;
+using std::cin;
+using std::cerr;
+using std::clog;
+using std::endl;
+int main () {
+
+ string s;
+ auto Size = s.size();
+ cout << Size << endl;
+ cout << s[0] << endl;
+ return 0;
+}