summaryrefslogtreecommitdiff
path: root/3p27.cpp
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-08-11 20:59:53 +0200
committerOskar <[email protected]>2024-08-11 20:59:53 +0200
commit06615448f1fd8378817e8ef72b5347ae3f0c3577 (patch)
treefc89a7edaee13953211d006a9c1a428dd279247c /3p27.cpp
parentb45c0d29ee690c8b436a33581d3b108e6064b5a7 (diff)
more
Diffstat (limited to '3p27.cpp')
-rw-r--r--3p27.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/3p27.cpp b/3p27.cpp
new file mode 100644
index 0000000..de4f9d2
--- /dev/null
+++ b/3p27.cpp
@@ -0,0 +1,37 @@
+#include <iostream>
+#include <vector>
+#include "sales_data.hpp"
+#include "sales_item.hpp"
+
+/*
+ *
+ * 3.27
+ *
+ *
+ */
+
+using std::string;
+using std::cout;
+using std::cin;
+using std::cerr;
+using std::clog;
+using std::endl;
+using std::vector;
+
+int text_size() {
+
+ return 9900;
+}
+
+int main () {
+
+ //unsigned buf_size = 1024;
+ //int ia1[buf_size]; // illegal
+ int ia2[4 * 7 - 14]; // legal
+ //int ia3[text_size()]; // illegal, would be legal if text_size returned constexpr
+ //char st[11] = "fundamental"; // illegal
+
+ ia2[0] = 1;
+ cout << ia2[0] << endl;
+ return 0;
+}