The big question is, have you learned how to write and compile own applications in C++ under these 2 years? If the answer to this question is no, you'd better Google some tutorials about C++, before trying to make your own cheats. There's no point in copy-pasting sources without knowing how they work.
Remember though, most people have the strange belief that you can code cheats only in C++. There are many other languages that can be used for it just fine.