Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpp-project-template

This is a template for a C++ project.

Requirements

  • g++
  • make

Building

make

This compiles src/testing.cpp into an executable named testing in the repository root.

Running

./testing

Expected output:

[LOG] Hello World!

Compile and run

cr.sh chains all three steps — removing the old executable, building, and running:

./cr.sh

Repository layout

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.

About

This is a template for a C++ project.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages