Hello, I want to create a little program... As first it should save the current Mouse position.
Then it should save it again after some seconds but this time in another pointer.
After that I want the diffrence saved in another var but this time in an int.
What is the type of _calcPlayer and _calcEnemy?
What does the GetCursorPos() do?
One does not simply "save something in a pointer". Pointers store memory addresses. A pointer can point to an object. That object usually stores a value.
A "cursor position" (or "point") sounds like a (mathematical) 2D vector. How does one compute the "difference" of positions? Is the difference a boolean, vector, or distance? If a distance, then euclidean, manhattan, or what?