include windows.h and then you can use:
SetCursorPos (var_x,var_y);