Heres a very simple memory hack that you can change to your liking, i use it for call of duty world at war to mess around with.
Code:
#include <iostream>
#include <windows.h>
#include <conio.h>
#include <string>
using namespace std;
int main()
{
string response;
cout << " gogogokitty199's Point Modifier\n"; //title at the top of program
cout << " \n";
cout << " \n";
LPCWSTR Waw = L"Call of Duty®"; //name of game window, example(The Dead Linger)
HWND hwnd = FindWindow(0, Waw);
DWORD process_ID;
GetWindowThreadProcessId(hwnd, &process_ID);
HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, process_ID);
while (true) //program will reset here
{
cout << "What do you want to set your points as: ";
int Points;
cin >> Points;
DWORD newdatasize = sizeof(Points);
if (WriteProcessMemory(hProcess, (LPVOID)0x018EF124, &Points, newdatasize, NULL)) //enter the address here
cout << "point write success\n";
cout << " \n";
}
}