This repository contains basic examples of C++ code, demonstrating fundamental concepts and structures in C++ programming.
/vector/: Contains examples related to the usage of vectors in C++./map/: Contains examples related to the usage of maps in C++./string/: Contains examples related to the usage of strings in C++./misc/: Contains standalone programs, currently an interactive mental arithmetic drill./scripts/: Contains helper scripts for working with this repository.
- A working C++ compiler supporting C++17 (GCC, Clang, etc.).
- Basic understanding of C++ syntax.
Each file is a standalone program and can be compiled on its own:
g++ -std=c++17 -Wall -Wextra -o basic vector/00.basic.cpp && ./basicTo compile every example at once into build/:
./scripts/build_all.shThe script honours CXX, STD and OUT if you need a different compiler,
standard or output directory.
This project is licensed under the MIT License - see the LICENSE file for details.