If you are new to programming with C++ and are looking for a solid introduction, this is the book for you. Developed by computer science instructors, books in the "For the Absolute Beginner"™ series teach the principles of programming through simple game creation. You will acquire the skills that you need for more practical C++ programming applications and will learn how these skills can be put to use in real-world scenarios. Throughout the chapters, you will find code samples that illustrate concepts presented. At the end of each chapter, you will find a complete game that demonstrates the key ideas in the chapter, a summary of the chapter, and a set of challenges that tests your newfound knowledge. By the time you finish this book, you’ll be well versed in C++ and be able to apply the basic programming principles you’ve learned to the next programming language you tackle.
1: Starting the Journey.
2: Descending Deeper … into Variables.
3: Taking Command with Control Statements.
4: Writing Functions.
5: Abstracting with OOP.
6: Moving to Advanced Data Types.
7: Building Namespaces.
8: Introducing Inheritance.
9: Using Templates.
10: Using Streams and Files.
11: Errors and Exception Handling.
12: Programming with Windows.
13: Making Graphics with OpenGL.
14: Creating the Pirate Adventure.
Appendix A: Answers to Challenges.
Appendix B: Using the Octal, Hexadecimal, Binary and Decimal Systems.
Appendix C: The C++ Keywords.
Appendix D: Standard Library Reference.
Appendix E: Making the Most of Visual Studio.