This book is a companion for learning the C++ programming language. It presents some significant concepts applied to a program implementing a multiple balls collision simulator, which will run in real-time in a multi-thread structure. The book explains the program. The goal is to make possible for the reader the improvement of the program or even application to other fields. Nevertheless, this book is neither a complete nor a simplified course. The objective is to be a complementary tool. Examples extending the program include the simplified simulations of a planet and its satellite and the creation of a fictional universe, which the book's second part implements. The elementary simulation of a satellite launching is also partially implemented and is a challenge to the reader, who must complete it by finding the correct parameters. Therefore, this book is also helpful for teaching and studying physics (Newtonian mechanics). The program had minor changes in this second edition, including a simplified computer virus propagation simulation.