Skip to content

Practice code from various exercises of "C++ How to Program"

Notifications You must be signed in to change notification settings

demonCoder95/cpp-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

C++ Code Exercises and other Miscellaneous Code

This repository contains the solutions developed for solving various exercises in the "C++ How to Program" textbook by Paul and Harvey Dietel.

The purpose is to document all the code written, and also catalog it for future reuse.

Note: This does not solve all the problems in the book. Only the interesting ones or the ones worth solving have been solved. Special focus given to problems regarding creating reusable C++ classes.

The Repository Layout

The lib folder contains all the reusable classes (headers and implementations) along with a driver program file main.cpp which you can use to test those classes.

The solutions folder contains standalone programs each labelled with an exercise number.

How to use the repository

Within the lib directory, you can use the classes as follows:

  1. Make necessary changes to the main.cpp to create a driver program.

  2. Use the MakeFile to automatically compile all the library code and run the executable

make all

This compiles all the files including the main.cpp and runs it to show the output.

About

Practice code from various exercises of "C++ How to Program"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published