From 06615448f1fd8378817e8ef72b5347ae3f0c3577 Mon Sep 17 00:00:00 2001 From: Oskar Date: Sun, 11 Aug 2024 20:59:53 +0200 Subject: more --- 3p27.cpp | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 3p27.cpp (limited to '3p27.cpp') 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 +#include +#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; +} -- cgit v1.2.3