#include
#include
#include
#include
using namespace std;
class Print
{
private:
int x,y;
public:
void gotoxy(int x,int y)
{
HANDLE h;
COORD c;
c.X=x;
c.Y=y;
h=GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleCursorPosition(h,c);
}
void print1(int x1,int y1)
{
gotoxy(x1,y1) ;
cout<<"★";
}
void print2(int x2,int y2)
{
gotoxy(x2,y2);
cout<<"☆";
}
void printf()
{
int a[10];
int min;
int x[10],y[10];
int i;
srand(time(0));
for( i=0;i<10;++i)
{
x[i]=rand()%80+1;
y[i]=rand()%25+1;
a[i]=x[i]*x[i]+y[i]*y[i];
}
min=a[0];
int k=0;
for(i=0;i<10;++i)
{
if(a[i]