Skip to content

Solutions to warm-up exercises and programming problems from "Programming in C++" (3rd Edition) by Nell Dale & Chip Weems.

Notifications You must be signed in to change notification settings

HarshitRSethi/Learning-CPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

C++ Exercises – Nell Dale & Chip Weems (3rd Edition)

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.


πŸ“‚ Repository Structure

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 .txt files for input/output.
  • Executables (a.out, ex1, etc.) are created locally after compiling and may or may not be committed.

βš™οΈ Compilation & Execution

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
./ex1

Example for a problem:

cd P/2
g++ problem2.cpp -o problem2
./problem2

πŸ› οΈ Requirements

Before running the programs, make sure you have:

  • A C++17 or later compatible compiler (g++ or clang++) installed
  • A terminal or command prompt to compile and run the code

πŸ“˜ Notes

  • All solutions are written by me while practicing from the textbook.
  • Some problems include .txt files which are used for reading input or writing output.
  • This repository is intended as a learning resource. It does not contain official solutions.

πŸš€ Future Plans

  • Add solutions for more chapters
  • Refactor code for better readability and consistency
  • Explore adding test cases for selected problems

🀝 Contributions

This is a personal learning project, but contributions are welcome!

If you’d like to help:

  1. Fork the repository
  2. Create a new branch for your changes
  3. Commit and push your changes
  4. Submit a Pull Request

Suggestions, improvements, and discussions are always appreciated.

About

Solutions to warm-up exercises and programming problems from "Programming in C++" (3rd Edition) by Nell Dale & Chip Weems.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages