1
0
forked from newde/homework

镇乃天子

This commit is contained in:
2026-03-14 05:31:23 -04:00
parent e268fd03a2
commit 8633a4877f

View File

@@ -0,0 +1,20 @@
#include<iostream>
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<<endl;
delete ptr_a,ptr_b;
return 0;
}