#include<iostream>
#include<iomanip>
int main()
{
using namespace std;
class point
{
private:
int x,y;
public:
void setpoint(int x1,int y1)
{
x=x1;y=y1;
}
void dispoint()
{
cout<<"x="<<x<<"\ty="<<y<<endl;
}
};
point point1,*point2=new point;
point1.setpoint(1,1);
point1.dispoint();
point2->setpoint(2,5);
point2->dispoint();
}