#include #include int main(){ POINT pt; while(1) { GetCursorPos(&pt);//调用API函数 printf("%d,%d\n",pt.x,pt.y); Sleep(100); } return 0;}