Welcome to the The C++ Programming Language (4th Edition) exercise solutions repository. This repository contains solutions to the exercises from Bjarne Stroustrup's book on C++.
This repository provides solutions to exercises from the book, using modern C++ practices. Each chapter covers key concepts, from basic syntax to advanced features.
Clone the repository:
git clone https://github.com/VictorBro/The_CPP_Programming_Language.git
Ensure you have a C++ compiler that supports C++11 or later installed. For example, install g++ via:
sudo apt-get install g++
To compile any solution:
g++ -o output_name solution_file.cpp
Navigate to the relevant chapter directory and compile the solution.
Run the compiled program:
./output_name
For example, to compile and run the Chapter 1 solution:
g++ -o calc 10_11_calculator.cpp
./calc
Contributions to this project are welcome. Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (git checkout -b feature-branch).
- Make changes and add them (git add .).
- Commit your changes (git commit -m 'Add some feature').
- Push to the branch (git push origin feature-branch).
- Open a pull request.