This repository consists of my solutions to the programming challenges in the book, Starting Out with C++ from Control Structures to Objects by Tony Gaddis.
1.) Pull this git repo
git pull origin main
2.) Change the directory
cd Chapter-2
3.) Make the shell script executable
chmod +x run_executables.sh
4.) Run the bash shell script
./run_executables.sh
If the shell script does not run:
1.) Change to the desired chapter's directory
cd Chapter-2
2.) Run the make command
make all
3.) Change to build directory
cd build
4.) Run the executables
./pc_1.out
./pc_2.out
./pc_3.out
and so on..
Ensure that you have docker engine installed in your system. If not, visit Install Docker Engine for the installation guide.
Run the following commands in the terminal
1.) Pull this git repo
git pull origin main
2.) Build using docker. Omit sudo if the user has been added to docker group
sudo docker build -t starting-out-with-cpp:v1 ./
.
3.) Run using the docker engine
sudo docker run --rm starting-out-with-cpp:v1
Note - There is no provision to provide inputs from console when running in docker engine