#include <iostream> #include <windows.h> using namespace std; int main(void) { POINT p; while (1) { if (GetCursorPos(&p)) { cout<<p.x<<"/t"<<p.y<<endl; } Sleep(1000); } return 0; } 头文件就是多加个Windows.h就行了。
2010-08-10
#include <iostream> #include <windows.h> using namespace std; int main(void) { POINT p; while (1) { if (GetCursorPos(&p)) { cout<<p.x<<"/t"<<p.y<<endl; } Sleep(1000); } return 0; } 头文件就是多加个Windows.h就行了。
2010-08-10