From f5c717b85680b984ce333d6eb39941b4e38ceea5 Mon Sep 17 00:00:00 2001 From: hehe Date: Sat, 14 Mar 2026 05:08:44 -0400 Subject: [PATCH] =?UTF-8?q?=E9=95=87=E4=B9=83=E5=A4=A9=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 666/nd.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 666/nd.cpp diff --git a/666/nd.cpp b/666/nd.cpp new file mode 100644 index 0000000..b4fea1a --- /dev/null +++ b/666/nd.cpp @@ -0,0 +1,20 @@ +#include + +using namespace std; + +int main(){ + int * ptr_a,* ptr_b; + ptr_a = new int; + ptr_b = new int; + int temp; + + cin>>*ptr_a>>*ptr_b; + temp=*ptr_a; + *ptr_a=*ptr_b; + *ptr_b=temp; + cout<<*ptr_a<<" "<<*ptr_b<