summaryrefslogtreecommitdiff
path: root/7p11.cpp
diff options
context:
space:
mode:
Diffstat (limited to '7p11.cpp')
-rw-r--r--7p11.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/7p11.cpp b/7p11.cpp
new file mode 100644
index 0000000..6e45361
--- /dev/null
+++ b/7p11.cpp
@@ -0,0 +1,22 @@
+#include <iostream>
+#include "sales_data.hpp"
+
+/*
+ *
+ * 7.11
+ *
+ *
+ */
+
+int main () {
+
+ SalesData sd1 = {"0-201-78345-X"};
+ SalesData sd2 = {"0-201-78345-X", 1, 1};
+ SalesData sd3("0-201-78000-X");
+ SalesData sd4 = {"0-201-78000-X", 21, 22};
+ print(std::cout, sd1) << std::endl;
+ print(std::cout, sd2) << std::endl;
+ print(std::cout, sd3) << std::endl;
+ print(std::cout, sd4) << std::endl;
+ return 0;
+}