diff options
author | Oskar <[email protected]> | 2024-07-31 17:09:45 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-07-31 17:09:45 +0200 |
commit | a450487a18ec72ea3a3815bfaf17b2f701796b6f (patch) | |
tree | 67b4cfe127bc5c134f06c06e57ad35629e630b7b /2p36.cpp | |
parent | b7819b597e1241dd98643eeda4c288a341142311 (diff) |
more
Diffstat (limited to '2p36.cpp')
-rw-r--r-- | 2p36.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
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 <iostream> +#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 << " <c\n" << d << " <d" << std::endl; + std::cout << b << std::endl; + return 0; +} |