From 815ff77709efd632a131d3a6c36c94ebeacbf345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=81=A5?= <13234965+yang-jiandd@user.noreply.gitee.com> Date: Thu, 23 Oct 2025 02:15:23 +0000 Subject: [PATCH] =?UTF-8?q?update=2001.C++=E5=9F=BA=E7=A1=80=E6=95=99?= =?UTF-8?q?=E7=A8=8B/03.C++=E6=A0=B8=E5=BF=83=E7=BC=96=E7=A8=8B/4.?= =?UTF-8?q?=E7=B1=BB=E5=92=8C=E5=AF=B9=E8=B1=A1/4.2=20=E5=AF=B9=E8=B1=A1?= =?UTF-8?q?=E7=9A=84=E5=88=9D=E5=A7=8B=E5=8C=96=E5=92=8C=E6=B8=85=E7=90=86?= =?UTF-8?q?/4.2.2=20=E6=9E=84=E9=80=A0=E5=87=BD=E6=95=B0=E7=9A=84=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E5=8F=8A=E8=B0=83=E7=94=A8.cpp.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨健 <13234965+yang-jiandd@user.noreply.gitee.com> --- ...210\206\347\261\273\345\217\212\350\260\203\347\224\250.cpp" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/01.C++\345\237\272\347\241\200\346\225\231\347\250\213/03.C++\346\240\270\345\277\203\347\274\226\347\250\213/4.\347\261\273\345\222\214\345\257\271\350\261\241/4.2 \345\257\271\350\261\241\347\232\204\345\210\235\345\247\213\345\214\226\345\222\214\346\270\205\347\220\206/4.2.2 \346\236\204\351\200\240\345\207\275\346\225\260\347\232\204\345\210\206\347\261\273\345\217\212\350\260\203\347\224\250.cpp" "b/01.C++\345\237\272\347\241\200\346\225\231\347\250\213/03.C++\346\240\270\345\277\203\347\274\226\347\250\213/4.\347\261\273\345\222\214\345\257\271\350\261\241/4.2 \345\257\271\350\261\241\347\232\204\345\210\235\345\247\213\345\214\226\345\222\214\346\270\205\347\220\206/4.2.2 \346\236\204\351\200\240\345\207\275\346\225\260\347\232\204\345\210\206\347\261\273\345\217\212\350\260\203\347\224\250.cpp" index 1f3a460..34955c1 100644 --- "a/01.C++\345\237\272\347\241\200\346\225\231\347\250\213/03.C++\346\240\270\345\277\203\347\274\226\347\250\213/4.\347\261\273\345\222\214\345\257\271\350\261\241/4.2 \345\257\271\350\261\241\347\232\204\345\210\235\345\247\213\345\214\226\345\222\214\346\270\205\347\220\206/4.2.2 \346\236\204\351\200\240\345\207\275\346\225\260\347\232\204\345\210\206\347\261\273\345\217\212\350\260\203\347\224\250.cpp" +++ "b/01.C++\345\237\272\347\241\200\346\225\231\347\250\213/03.C++\346\240\270\345\277\203\347\274\226\347\250\213/4.\347\261\273\345\222\214\345\257\271\350\261\241/4.2 \345\257\271\350\261\241\347\232\204\345\210\235\345\247\213\345\214\226\345\222\214\346\270\205\347\220\206/4.2.2 \346\236\204\351\200\240\345\207\275\346\225\260\347\232\204\345\210\206\347\261\273\345\217\212\350\260\203\347\224\250.cpp" @@ -59,7 +59,7 @@ void test02() { //2.2 显式法 Person p2 = Person(10); //有参构造 Person p3 = Person(p2); //调用拷贝构造函数 - //Person(10)单独写就是匿名对象,当前行结束之后,马上析构,放在右侧就相当于命名给左侧了 + //Person(10)单独写就是匿名对象,当前行结束之后,马上析构 ,系统会立即回收掉匿名对象,放在右侧就相当于命名给左侧了 //2.3 隐式转换法 Person p4 = 10; // Person p4 = Person(10); -- Gitee