Skip to content
Proyek

Tentang

Modern C++ (C++17/20/23) guide and cheat sheet with runnable examples. Zero-setup dev environment using Docker and VS Code Dev Containers on Linux. ๐Ÿš€

Sistem dan infrastruktur

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
+1
dalam 15 hari
+1
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

CPP Guide ๐Ÿ“š

๐Ÿ‘‹ Welcome!

The CPP Guide repository is meant to be a guide / quick reference for C++ developers where I try to get to the point so you can spend more time programming. This guide is Markdown, so it is easily opened using Visual Studio Code or Github. It contains extensive documentation, code examples and best practices.

๐Ÿ“– Read it online (with search): benjaminyde.github.io/CPP-Guide

๐Ÿ“ A Note on Reading This Guide

Before you dive in, it's important to understand that this guide is structured by topic, not by difficulty. There is no prescribed "beginner to advanced" path. Feel free to jump to any section that is relevant to your needs. A developer needing to understand std::vector can go straight there, while another might need to brush up on "RAII" or "CMake Presets."

๐Ÿš€ Execute Code Examples

Explore the ๐Ÿ“ examples directory for interactive C++ code examples, easily executable inside a Docker DevContainer within Visual Studio Code. This setup ensures a consistent and streamlined coding environment, ideal for learning and experimentation.

๐ŸŒ Documentation Website

The guide is also published as a Docusaurus website, built from the ๐Ÿ“ guide directory. The website project lives in ๐Ÿ“ docusaurus and has its own DevContainer (cpp_guide_docs, in .devcontainer/docs_x64_ubuntu24.04).

  1. Open the project in the cpp_guide_docs DevContainer. Dependencies are installed automatically (npm ci).
  2. Go into the docusaurus folder.
  3. Run npm start to start a live-reloading development server at localhost:3000/CPP-Guide/.
  4. Run npm run build && npm run serve to test the production build. The search bar only works in a production build: the search index is generated at build time, so no external search service is needed.

๐Ÿ—‚๏ธ Table of Contents

๐Ÿ“œ Strings, Streams & Files

๐Ÿ“ฆ Containers

๐Ÿง  Memory Management

๐ŸŽญ Functions

๐Ÿ“ Templates

๐Ÿ›๏ธ Object Oriented Programming (OOP)

Introduction

Inheritance

Virtual Functions

๐Ÿ› ๏ธ C++ Compilation, CMake & Tooling

Compilation Process

CMake

Tooling

๐Ÿ”— Typing, Casting & ConstExpr

โšก Concurrency

๐ŸŽจ Design Patterns & Idioms

๐Ÿšง Todo

  • Design patterns
  • Error handling

๐Ÿ“ References

General

  • CPP Reference
    • This is more of a reference but contains examples and explanations that can serve as a learning resource.
    • Link here
  • Online C++ Compiler
  • C++ Core Guidelines
  • Google C++ Style Guide

Tutorials

  • LearnCpp
    • Devoted to teaching you how to program in C++. Whether youโ€™ve had any prior programming experience or not, the tutorials on this site will walk you through all the steps to write, compile, and debug your C++ programs, all with plenty of examples.
    • Link here
  • GeeksforGeeks
    • Offers a variety of tutorials and exercises ranging from basic to advanced topics.
    • Link here

Interviews

  • C++ Interview Questions and Answers (geeksforgeeks.org)

Books

  • Software Architecture with C++ (Paid)
    • Design modern systems using effective architecture concepts, design patterns, and techniques with C++20. By Adrian Ostrowski & Piotr Gaczkowski, April 2021.
    • Link here
  • Professional C++ (Paid)
    • Professional C++, 5th Edition raises the bar for advanced programming manuals. By Marc Gregoire, Feb 2021.
    • Link here
  • Modern CMake for C++ (Paid)
    • Write comprehensive, professional-standard CMake projects. By Rafal ลšwidziล„ski, May 2024.
    • Link here
  • CMake Best Practices (Paid)
    • Write comprehensive, professional-standard CMake projects. By Dominik Berner & Mustafa Kemal Gilor, Aug 2024.
    • Link here
  • Advanced C and C++ Compiling (Paid)
    • Understand the structure and purpose of the binary files produced by the compiler.
    • Link here
  • Learning C++ (Free)
    • Free unaffiliated eBook created from Stack Overflow contributors.
    • Link here
  • More C++ Idioms (Free)
  • C++ Programming: Code patterns design (Free)
  • C++ Notes for Professionals book (Free)

Jelajahi proyek terkait

Memuatโ€ฆ