This repository contains my solutions to the warm-up exercises (E) and programming problems (P) from
Programming in C++ (3rd Edition) by Nell Dale and Chip Weems.
I started this project to strengthen my knowledge of C++, a versatile and high-performance language widely used in systems programming, competitive coding, and large-scale applications.
The repository is organized into two main directories:
βββ E/ # Warm-up Exercises
β βββ 1/ # Chapter 1 exercises
β β βββ E1.1.cpp # Solution source file
β β βββ E1.1 # Executable
β β βββ data.txt # (optional) Input/output file
β βββ 2/
β βββ ...
β
βββ P/ # Programming Problems
β βββ 1/ # Chapter 1 problems
β βββ 2/
β βββ ...
β
βββ README.md
E/β Warm-up exercises (organized by chapter)P/β Programming problems (organized by chapter)- Each numbered folder corresponds to a chapter.
- Some problems include
.txtfiles for input/output. - Executables (
a.out,ex1, etc.) are created locally after compiling and may or may not be committed.
There is no global Makefile. Each solution can be compiled individually using your C++ compiler.
Example for an exercise:
cd E/1
g++ ex1.cpp -o ex1
./ex1Example for a problem:
cd P/2
g++ problem2.cpp -o problem2
./problem2Before running the programs, make sure you have:
- A C++17 or later compatible compiler (
g++orclang++) installed - A terminal or command prompt to compile and run the code
- All solutions are written by me while practicing from the textbook.
- Some problems include
.txtfiles which are used for reading input or writing output. - This repository is intended as a learning resource. It does not contain official solutions.
- Add solutions for more chapters
- Refactor code for better readability and consistency
- Explore adding test cases for selected problems
This is a personal learning project, but contributions are welcome!
If youβd like to help:
- Fork the repository
- Create a new branch for your changes
- Commit and push your changes
- Submit a Pull Request
Suggestions, improvements, and discussions are always appreciated.