5. Do the exercise using GCC

February 23, 2018 ยท View on GitHub

You can do the exercise using GCC.

From a terminal, do:

g++ main.cpp

To run the created executable, which as the name a.out by default, type:

./a.out

The course compiles with C++17 with highest warning levels. To do so yourself, instead use:

g++ -Wall -Wextra -Wshadow -Wnon-virtual-dtor -pedantic -Weffc++ -Werror -std=c++17 main.cpp

Think you are done with the exercise? Time to push your code!