#include<iostream>
#include<string>
using namespace std;
class point
{
private:
int x,y;
public:
void setx(int a)
{
x=a;
}
int getx()
{
return x;
}
void sety(int b)
{
y=b;
}
int gety()
{
return y;
}
};
class circle
{
private:
int r;
point center;
public:
void setr(int c)
{
r=c;
}
int getr()
{
return r;
}
void setcenter(point center1)
{
center=center1;
}
point getcenter()
{
return center;
}
};
void isin(circle &c,point &p)
{
int distance=
(c.getcenter().getx()-p.getx())*(c.getcenter().getx()-p.getx())+
(c.getcenter().gety()-p.gety())*(c.getcenter().gety()-p.gety());
int rdistance=c.getr()*c.getr();
if(distance==rdistance)
{
cout<<"点在圆上"<<endl;
}
else if(distance<rdistance)
{
cout<<"点在圆内"<<endl;
}
else
{
cout<<"点在圆外"<<endl;
}
}
int main()
{
circle c;
c.setr(10);
point center;
center.setx(10);
center.sety(0);
c.setcenter(center);
point p;
p.setx(10);
p.sety(10);
isin(c,p);
}