Introduction
Personal solutions for C++ Primer 5th edition exercises, basically cover the 95% exercise. Only some ambiguous and superfluous ones has been left. All the source codes and answers were put into the markdown file. For each chapter and its exercises, only use the actual knowledge and skill, so there won't be any advance abilities requirement for present code. Also, some header files and data could be found in the corresponding directory.
Limitations
- Comments and answers(statement without code) are written by Chinese Simplified, so if you are unfamiliar with it, you may need to find some other solutions that fits your language.(Or see the Recommendations)
- There won't be any instructions for the knowledge from book, if you puzzled, you should jump into the communities(like Stack Overflow) to solve your problem, or just review the books.
Compiler Requirements
- GCC 4.9+
- Clang 3.4+
- MSVC 18.0+
(Details and others see here)
Table of Contents
- Chapter 1 Getting Started
- Chapter 2 Variables and Basic Types
- Chapter 3 Strings, Vectors, and Arrays
- Chapter 4 Expressions
- Chapter 5 Statements
- Chapter 6 Functions
- Chapter 7 Classes
- Chapter 8 The IO Library
- Chapter 9 Sequential Containers
- Chapter 10 Generic Algorithms
- Chapter 11 Associative Containers
- Chapter 12 Dynamic Memory
- Chapter 13 Copy Control
- Chapter 14 Overloaded Operations and Conversions
- Chapter 15 Object-Oriented Programming
- Chapter 16 Templates and Generic Programming
- Chapter 17 Specialized Library Facilities
- Chapter 18 Tools for Large Programs
- Chapter 19 Specialized Tools and Techniques
Contribution
If you have better solution for any solved exercise, or reasonable answer for any unsolved exercise, it is welcome to open an issue or pull requests. The contributed information would be added if you demand.