Modern C++ course assert example.
result = 3
result = Assertion failed: (a > .0), function f, file assert.cpp, line 7.
To build assert project, open "Terminal" and type following lines:
mkdir build && cd build
cmake ..
start assert.slnSelect assert project and type Ctrl+F5 to build and run it.
mkdir build && cd build
cmake .. -G "Xcode"
open ./assert.xcodeprojSelect assert project and type Cmd+R to build and run it.
mkdir build && cd build
cmake ..
cmake --build . --config Debug
./assert- Launch Visual Studio Code.
- Select
File/Open Folder...menu. - Select
assertfolder and open it. - Build and Run
assertproject.
