I am actually learning c++ , and while learning I mixed everything i've learned to make a little funny program just for fun , nothing awesome but maybe this can help very beginner people So I'm just passing by and droping the source code , and I hope this help some people

NUMPAD 0 = CLEAR CONSOLE

NUMPAD 1 = SELECT THE JUMPING LOCATION

LCTRL = SAVE MOUSE POSITION

LSHIFT = PRINT ALL MOUSE POSITION


Code:
// X Y Loc.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>
#include <Windows.h>
#include <vector>


using namespace std;
class user
{
private:
	vector<int> xLoc;
	vector<int> yLoc;
public:
	void addInt(int num, int num2);
	void saveLoc();
	void showList();
	void locJump();


};
void user::addInt(int num, int num2){
	yLoc.push_back(num);
	xLoc.push_back(num2);
}
void user::saveLoc()
{


	
	POINT l;
	GetCursorPos(&l);
	addInt(l.x, l.y);
	Beep(1500, 250);
	cout << "Location " << xLoc.size() << " successfuly saved" << endl;
	Sleep(250);
}
void user::showList()
{
	for (unsigned int i = 0; i < xLoc.size() && i < yLoc.size(); i++)
	{
		cout << "LOCATION [" << i << "] : ";
		cout << " <" << xLoc[i] << ">" << "." << "<" << yLoc[i] << ">" << endl;
		Sleep(100);
	}
}

void user::locJump()
{
	
	int choice;
	int randX;
	int randY;
	if (xLoc.size() > 0)
	{
		
		cout << "Choose the location to jump in from 0 to [" << xLoc.size() << "]" << endl;
		cout << "Dont fail or your mouse will go crazy ! ;)" << endl;
		Sleep(200);
		cout << "> ";
		
		cin >> choice;
		if (choice <0 || choice > xLoc.size())
		{
			cout << "Invalid number.. Your mouse will now go crazy in : ";
			for (int i = 5; i != 0; i--)
			{
				cout << i;
				Sleep(1000);
				cout << "\b";
			}
			
			for (int i = 0; i < 20; i++)
			{
				int r;
				mouseGoingCrazy(&randX, &randY);
				SetCursorPos(randX,randY);
				Sleep(50);
				r = rand() % 999 + 1;
				Beep(r, 250);
			}
			
		}
SetCursorPos(xLoc[choice], yLoc[choice]);

	}
	else
	{

	}
	
	
}

void mouseGoingCrazy(int *x,int *y)
{
	*x = rand() % 1919 + 1;
	*y = rand() % 1079 + 1;

}
void jumpingLocation();
void mouseGoingCrazy(int*, int*);
int main()
{
	user ken;

	while (1)
	{
		
	
		if (GetKeyState(VK_CONTROL) & 0x80)
		{
			ken.saveLoc();
			
		}
		else if (GetKeyState(VK_LSHIFT) & 0x80)
		{
			system("ClS");
			ken.showList();
		}
		else if (GetKeyState(VK_NUMPAD0) & 0x80)
		{
			system("CLS");
		}
		else if (GetKeyState(VK_NUMPAD1) & 0x80)
		{
			
			ken.locJump();
		
		}
		else
		{
			Sleep(1);
		}
	}

}