Here are some useful websites for learning C++, the language Torque is written in. Note that most game logic is written in TorqueScript - but your game-specific TorqueScript code calls C++ functions inside the game engine.