This repository contains notes from the 8th edition of "Sams Teach Yourself C++ in One Hour a Day", written by Siddhartha Rao.
All source code directly comes from the book and all credit goes to Siddhartha for putting together a wonderful resource for developers curious about the C++ programming language.
This repo was built on a MacBook running macOS Mojave (version 10.14.4). Code was written using VIM. Code was complied using g++ using Linux. All executables are named after the script (i.e. math.app
is an executable that originates from the compiled math.cpp
C++ file).
# change from project directory to ch_01/ directory
cd ch_01/
# instruct g++ to create an executable named math.app by compiling the math.cpp file
g++ -o math.app math.cpp
# execute math.app
./math.app
After reading "Should appary files be stored in a Git repository?" from Quora, I've decided to not track executables. To do so, I'm manually adding the .app
file extension to executables to take advantage of the fact that GitHub's C++ .gitignore
file ignores that particular file extension for executables.
This decision was made with the understanding that there is no standard file extension type (similar to Window's .exe
) for executable files on Linux machines since nearly any file can be executable in Linux (Source: Community Wiki via Ask Ubuntu Stack Exchange).