From 06d7bba7aeb0e612ff3fd337d196d729eb8ef0b2 Mon Sep 17 00:00:00 2001 From: Hachi Date: Thu, 16 Jun 2022 00:52:47 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=A2=9Econst=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 4 ++ .../const/funciton_const/condition4/Test.cpp | 29 +++++++++++++ .../const/funciton_const/condition4/Test.h | 20 +++++++++ .../const/funciton_const/condition4/a.out | Bin 0 -> 18288 bytes .../const/funciton_const/condition4/main.cpp | 41 ++++++++++++++++++ 5 files changed, 94 insertions(+) create mode 100644 .vscode/settings.json create mode 100644 basic_content/const/funciton_const/condition4/Test.cpp create mode 100644 basic_content/const/funciton_const/condition4/Test.h create mode 100755 basic_content/const/funciton_const/condition4/a.out create mode 100644 basic_content/const/funciton_const/condition4/main.cpp diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..3986f4a --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "editor.suggest.snippetsPreventQuickSuggestions": false, + "aiXcoder.showTrayIcon": true +} \ No newline at end of file diff --git a/basic_content/const/funciton_const/condition4/Test.cpp b/basic_content/const/funciton_const/condition4/Test.cpp new file mode 100644 index 0000000..c1a0e5c --- /dev/null +++ b/basic_content/const/funciton_const/condition4/Test.cpp @@ -0,0 +1,29 @@ +#include "Test.h" +#include +using namespace std; + +Test::Test() +{ + cout<<"无参构造"<)?Q||Ua zWP(eg*vSdr8A>QQWrMM}?T$fYNBTq<}lx?cp7Uboik)_P1U zSWi=qCz+w6UdPi-ec(~?$-hFl^)_fdH*MDPOvwk8jx$!|qxfsndZ&HTjBwLO6fBss zzfVJt;_`)jl7cg^_FdasDE@tR9@%Qb$X?oha=AM#I{491h^yrR2(Fu#{Yn<6Gr7^^zVCT?wj1CT4Vp3f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^hf!3ORbXvO*NFFWUgv&TpKil>zXNt%0%*<88kF# zG`9=0`L=b9Yg?MY%Nb!L7m!(4c7JYJwW=eC{HVs2twEU{B^@?PhtWvL3Lzuw7K}3z z>oZfyDA}TnBTh031Y`mcl7=W%2-#I?L^L>+RmJ^pU(;aXc4W<2*7KmnMuOeJk6WTErE3aC~wp z!Hx35TFX-9>@tKx3+zTa(Ew!=3L&nP)D$Dp4$)Ov#A@17maF0s%+T znC-4wX5(q!)j@fZab@7_FX6dO8Fw;m&*k%SIeL>!rf)=mes zH5EgeZ7iZ8q~k5JLfeEC?+zuqg+H>h4=xn75{k1O`G{CiavCOhiD*xV6m+e>#}a29r0{il9%|1~UzP@$NzKJQ;JZPOiQ|E$mB z->dakYJoMK!R7TxpUOej3 zKcEGevOJsNHq*l{ecp#*+RuubvL4ePx%ByW2-7+{FvW<%Y zTA$Cq@M%F!f2o^H`22DEWmG8stbf|4I7}Z=P5ZCg|Eu6Q^?5&u>EmozTX6e7oInw(R{W{{JC(p0f`7XX=5$sSbVK$J(+;X|P-&{i)EWQ_TK( zzl;CB5B~o>==!C?_IMtA8yJm=^?6@xK>v{a3Mn}X>ocW&8>hYqXyGbF3yq&mUIS&a z#r^{Ut;hOg+))CKI#sXJ{r8L29~MTORfpaep!~b4f5$X=^xxTxfEPY@!#orU!nj2 literal 0 HcmV?d00001 diff --git a/basic_content/const/funciton_const/condition4/main.cpp b/basic_content/const/funciton_const/condition4/main.cpp new file mode 100644 index 0000000..ae22eeb --- /dev/null +++ b/basic_content/const/funciton_const/condition4/main.cpp @@ -0,0 +1,41 @@ +#include +#include "Test.h" +using namespace std; + + +void fun(const Test& t){ + t.a = 10; +} + +void fun2(const Test& t){ + t.a = 10; +} + +void fun3(const Test& t){ + t.a = 10; +} +int main() +{ + Test t_m; + t_m.a = 2; + + cout<<"==================================="< Date: Thu, 16 Jun 2022 00:57:47 +0800 Subject: [PATCH 2/2] =?UTF-8?q?const=20=E5=8F=82=E6=95=B0=E5=87=BD?= =?UTF-8?q?=E6=95=B0=20patch=20commit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 0001-const.patch | 244 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 244 insertions(+) create mode 100644 0001-const.patch diff --git a/0001-const.patch b/0001-const.patch new file mode 100644 index 0000000..9e56876 --- /dev/null +++ b/0001-const.patch @@ -0,0 +1,244 @@ +From 6ca32cbbacd425a37acba74787c6199dbdc54783 Mon Sep 17 00:00:00 2001 +From: Hachi +Date: Thu, 16 Jun 2022 00:52:47 +0800 +Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Econst=E5=87=BD=E6=95=B0?= + =?UTF-8?q?=E5=8F=82=E6=95=B0?= +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +--- + .vscode/settings.json | 4 ++ + .../const/funciton_const/condition4/Test.cpp | 29 +++++++++++++ + .../const/funciton_const/condition4/Test.h | 20 +++++++++ + .../const/funciton_const/condition4/a.out | Bin 0 -> 18288 bytes + .../const/funciton_const/condition4/main.cpp | 41 ++++++++++++++++++ + 5 files changed, 94 insertions(+) + create mode 100644 .vscode/settings.json + create mode 100644 basic_content/const/funciton_const/condition4/Test.cpp + create mode 100644 basic_content/const/funciton_const/condition4/Test.h + create mode 100755 basic_content/const/funciton_const/condition4/a.out + create mode 100644 basic_content/const/funciton_const/condition4/main.cpp + +diff --git a/.vscode/settings.json b/.vscode/settings.json +new file mode 100644 +index 0000000..3986f4a +--- /dev/null ++++ b/.vscode/settings.json +@@ -0,0 +1,4 @@ ++{ ++ "editor.suggest.snippetsPreventQuickSuggestions": false, ++ "aiXcoder.showTrayIcon": true ++} +\ No newline at end of file +diff --git a/basic_content/const/funciton_const/condition4/Test.cpp b/basic_content/const/funciton_const/condition4/Test.cpp +new file mode 100644 +index 0000000..c1a0e5c +--- /dev/null ++++ b/basic_content/const/funciton_const/condition4/Test.cpp +@@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001 + +diff --git a/basic_content/const/funciton_const/condition4/main.cpp b/basic_content/const/funciton_const/condition4/main.cpp +new file mode 100644 +index 0000000..ae22eeb +--- /dev/null ++++ b/basic_content/const/funciton_const/condition4/main.cpp +@@ -0,0 +1,41 @@ ++#include ++#include "Test.h" ++using namespace std; ++ ++ ++void fun(const Test& t){ ++ t.a = 10; ++} ++ ++void fun2(const Test& t){ ++ t.a = 10; ++} ++ ++void fun3(const Test& t){ ++ t.a = 10; ++} ++int main() ++{ ++ Test t_m; ++ t_m.a = 2; ++ ++ cout<<"==================================="<