Skip to content

Solution to exercises from the book Programming: Principles and Practice Using C++ (2nd Edition) by Bjarne Stroustrup.

Notifications You must be signed in to change notification settings

BurnLoop/Programming-CPP-Stroustrup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

137 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Programming: Principles and Practice Using C++ (2nd Edition)

The Computer Science course that I'm taking (University of Leeds) decided to focus on teaching Java.
As someone who is interested in graphics and game development, I knew that I had to learn C++, one way or another.

Thus, I dedicated a portion of my summer breaks to go through this book by Bjarne Stroustrup.

I have attempted to solve as many of the end-of-chapter exercises as possible.
Where time was limited, I chose to solve the ones that looked the most interesting to me.

I have not completed the final chapters of the book.
My intention is to save those as "refreshers", working through them if I need to.

A note about coding style

I treated this book, and by extension this repository, as a learning experience rather than a project.
Therefore, the coding style may not be consistent across each chapter.


How To Compile

Most of the exercises can simply be compiled on the command line using a compiler that supports C++ 14. (I used MSVC)
Where multiple files are involved with an exercise, I have provided a CMakeLists.txt file.

GUI code from Chapter 11-16

The code in these chapters require the FLTK library to be installed and configured.

Getting this to work with CMake proved too difficult (due to no/outdated documentation and resources).
As a result I have provided a Visual Studio solution file for any code that requires this library.

Installing and setting up the library isn't very intuitive. I have got it working on my system (Windows 10, Visual Studio 2022) using vcpkg.
Please refer to this link for some more instuctions: Install FLTK with vcpkg.



About

Solution to exercises from the book Programming: Principles and Practice Using C++ (2nd Edition) by Bjarne Stroustrup.

Topics

Resources

Stars

Watchers

Forks

Languages