For now, go through this tutorial to learn about how to program in C++. As you go through each lesson, you should complete exercises about that lesson so you can retain and try out the new information.

Note: You can't learn how to program this in a couple of weeks (or months), and if you are interested in learning more than the scope of this problem, it will take even years to get a full grasp of harder problems. Don't be discouraged though, learning how to program in C++ has many rewards.