From e26524c970d1669dc6cb9d96841f9b49caaedc7b Mon Sep 17 00:00:00 2001 From: newde Date: Fri, 6 Mar 2026 22:17:23 -0500 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=E6=8C=87=E9=92=88/?= =?UTF-8?q?=E6=8C=87=E9=92=88=E5=92=8C=E6=95=B0=E7=BB=84=E7=9A=84=E5=9C=B0?= =?UTF-8?q?=E5=9D=80.cpp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 指针/指针和数组的地址.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 指针/指针和数组的地址.cpp diff --git a/指针/指针和数组的地址.cpp b/指针/指针和数组的地址.cpp new file mode 100644 index 0000000..6f22703 --- /dev/null +++ b/指针/指针和数组的地址.cpp @@ -0,0 +1,20 @@ + 1 #include + 2 using namespace std; + 3 + 4 int main(){ + 5 + 6 int a=10; + 7 int b[5]={10,20,30,40,50}; + 8 int * prt_a , * prt_b; + 9 + 10 prt_a=&a; + 11 prt_b=b; + 12 cout << "我是内存地址: "<