Skip to content

squidmin/cpp-labs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpp-labs

C++ sandbox project

Install

  • A compiler supporting C++17.
  • CMake v3.10 or higher.

Build

Navigate to the project root.

Create a build directory and navigate to it:

mkdir build && cd build

Build the project:

cmake ..

Then, in the same directory:

make

To compile only a specific executable:

make ExecutableName

e.g.,

make IncrementAndDecrementOperators

Compiling a specific executable.

Run an executable

cd to the directory of the example:

cd ./sections/sectionXX/YY_ExecutableName

e.g.,

cd ./sections/section01/02_DataTypes

Run the executable:

./ExecutableName

e.g.,

./DataTypes

Build and run an executable