C++ program to print the location of mouse cursor in format (x,y) on the output screen...!? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

C++ program to print the location of mouse cursor in format (x,y) on the output screen...!?

It should give real-time location

23rd Aug 2017, 1:47 PM
AnonySharma
AnonySharma - avatar
2 Answers
+ 2
This can be either very low level work, or very easy. First of all, if you are going to write a plain c++ program, what is the OS? This is os dependant and different on Windows and Unix-based OSes. If you are using a framework, like Qt, openGL, sdl, gtk, ... they have methods/classes to help you.
24th Aug 2017, 5:37 AM
Ali Rashidi
Ali Rashidi - avatar
0
basically for Windows
24th Aug 2017, 7:56 AM
AnonySharma
AnonySharma - avatar