This repository contains my own solutions to exercises presented in the C++ Primer (5th Edition). These solutions are on purpose written in easy to understand manner so that the beginners - like me - are able to learn the C++ language with their own pace.
Consequently, I have tried my best to do the following:
-
Every exercise solution on purpose avoids using C++ language concepts which are not introduced in preceding chapters of the book.
-
Some of the example code provided by the book is modified to use better variable naming and syntax.
- Windows 7
- Microsoft Visual Studio Community 2019
- ISO C++14 Standard (std:c++14)
- Chapter 1. Getting Started
- Part I: The Basics
- Chapter 2. Variables and Basic Types
- Chapter 3. Strings, Vectors, and Arrays
- Chapter 4. Expressions
- Chapter 5. Statements
- Chapter 6. Functions
- Chapter 7. Classes
- Part II: The C++ Library
- Chapter 8. The IO Library
- Chapter 9. Sequential Containers
- Chapter 10. Generic Algorithms
- Chapter 11. Associative Containers
- Chapter 12. Dynamic Memory
- Part III: Tools for Class Authors
- Chapter 13. Copy Control
- Chapter 14. Overloaded Operations and Conversions
- Chapter 15. Object-Oriented Programming
- Chapter 16. Templates and Generic Programming
- Part IV: Advanced Topics
- Chapter 17. Specialized Library Facilities
- Chapter 18. Tools for Large Programs
- Chapter 19. Specialized Tools and Techniques