From 48b67927c5cb4c85101212c800dba898e2981a6a Mon Sep 17 00:00:00 2001 From: flykhan Date: Thu, 15 Jun 2023 14:19:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E9=87=8F=E7=B1=BB=E5=9E=8B=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F=20&=20=E5=8F=98=E9=87=8F=E5=90=8D=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- day4/d3.cpp | 10 ++++++++++ day4/d4.cpp | 13 +++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 day4/d3.cpp create mode 100644 day4/d4.cpp diff --git a/day4/d3.cpp b/day4/d3.cpp new file mode 100644 index 0000000..b339e1f --- /dev/null +++ b/day4/d3.cpp @@ -0,0 +1,10 @@ +#include + +using namespace std; + +int main() +{ + int $123 = 10; + cout << $123 << endl; + return 0; +} diff --git a/day4/d4.cpp b/day4/d4.cpp new file mode 100644 index 0000000..0b1c3f1 --- /dev/null +++ b/day4/d4.cpp @@ -0,0 +1,13 @@ +#include + +using namespace std; + +int main() +{ + int n; // 定义变量时, 默认初始化值为 0 + // cout << "n = " << n << endl; + + // '\t' 转义字符, 表示为 制表符, 一般情况下, 一个制表符占 4 个空格 + cout << n << "\t data type is " << sizeof(n) << endl; + return 0; +} \ No newline at end of file