#include<iostream>
using namespace std;
int main()
{
int n1,n2,max;
int *p1,*p2;
cout<<"请输入两个整数:"<<endl;
cin>>n1>>n2;
p1=&n1;
p2=&n2;
max=*p1;
if(max<*p2)
{
max=*p2;
}
cout<<"较大的数是: "<<max<<endl;
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: