From 4483699cc8cc937cb27040cfbd809b8a90029391 Mon Sep 17 00:00:00 2001 From: Oskar Date: Mon, 5 Aug 2024 20:57:13 +0200 Subject: more exercises --- 3p9.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 3p9.cpp (limited to '3p9.cpp') 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 +#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; +} -- cgit v1.2.3