void point::output(int x,int y)
{
HWND hwnd=GetForegroundWindow();//获取当前窗口的句柄
HDC hdc=GetDC(hwnd);//有了哪个窗口的句柄,就可以获取该窗口的DC句柄
char buf[20];
memset(buf,0,20);
sprintf(buf,"x=%d,y=%d",x,y);
TextOut(hdc,0,0,buf,strlen(buf));
ReleaseDC(hwnd,hdc);
}