__zero__

Cursor Position

Nov 1st, 2018
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. /*
  2. enjoy.
  3. */
  4.  
  5. #include <iostream>
  6. #include <windows.h>
  7. using namespace std;
  8. int main() {
  9.    
  10.     POINT cursorPosition;
  11.     GetCursorPos(&cursorPosition);
  12.     cout << ": Cursor position :\n\n\n" << endl;
  13.     cout << "X => " << cursorPosition.x << endl;
  14.     cout << "Y => " <<cursorPosition.y << endl;
  15.    
  16.     string w;
  17.     cin >> w;
  18.    
  19.     return 0;
  20.    
  21. }
Advertisement
Add Comment
Please, Sign In to add comment