This is a template for a C++ project.
g++make
makeThis compiles src/testing.cpp into an executable named testing in the repository root.
./testingExpected output:
[LOG] Hello World!
cr.sh chains all three steps — removing the old executable, building, and running:
./cr.sh| Path | Purpose |
|---|---|
src/ |
C++ sources. src/testing.cpp is the sample program. |
Makefile |
Build rules. The testing target names src/testing.cpp explicitly, so a new source file needs a corresponding change here to be compiled. |
cr.sh |
Compile-and-run helper. |
.devcontainer/ |
VS Code dev container definition. |
.vscode/ |
Editor settings. |