From a450487a18ec72ea3a3815bfaf17b2f701796b6f Mon Sep 17 00:00:00 2001 From: Oskar Date: Wed, 31 Jul 2024 17:09:45 +0200 Subject: more --- 2p36.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 2p36.cpp (limited to '2p36.cpp') diff --git a/2p36.cpp b/2p36.cpp new file mode 100644 index 0000000..73f02b7 --- /dev/null +++ b/2p36.cpp @@ -0,0 +1,22 @@ +#include +#include "sales_item.hpp" + +/* + * + * 2.36 + * + * + */ + +int main () { + + int a = 3; + int b = 4; + decltype(a) c = a; // int // c == 3 + decltype((b)) d = a; // int& // d == 3 + ++c; // 4 + ++d; // 4 + std::cout << c << "