GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - crazyguitar/cppcheatsheet: C/C++ Cheat Sheet

BranchesTags
Open more actions menu

Latest commit

 

History

908 Commits
908 Commits

Folders and files

NameName
Last commit message
Last commit date
.claude-plugin
.claude-plugin
 
 
.github
.github
 
 
cmake
cmake
 
 
docs
docs
 
 
skills
skills
 
 
src
src
 
 
.clang-format
.clang-format
 
 
.coveragerc
.coveragerc
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.readthedocs.yaml
.readthedocs.yaml
 
 
CITATION.cff
CITATION.cff
 
 
CMakeLists.txt
CMakeLists.txt
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
Procfile
Procfile
 
 
README.rst
README.rst
 
 
app.py
app.py
 
 
app_test.py
app_test.py
 
 
build.sh
build.sh
 
 
enroot.sh
enroot.sh
 
 
requirements.txt
requirements.txt
 
 
runtime.txt
runtime.txt
 
 

Repository files navigation

C/C++ Cheatsheet

https://img.shields.io/badge/doc-pdf-blue

This cheatsheet provides a curated collection of C and C++ code snippets covering modern language standards, system programming, and development tools. From basic syntax to advanced features like coroutines, templates, and memory management, each example is designed to be clear, practical, and ready to use. All code is tested and compiles cleanly, so you can focus on learning and adapting rather than debugging reference material.

Plugin

cppcheatsheet is available as a Claude Code plugin. Once installed, Claude automatically uses the cheat sheets to answer C/C++ questions — just ask naturally and the skill triggers based on context.

Installation

As a Claude Code plugin (recommended):

# Step 1: Add the marketplace
claude plugin marketplace add crazyguitar/cppcheatsheet

# Step 2: Install the plugin
claude plugin install cppcheatsheet@cppcheatsheet

Local testing (single session only):

claude --plugin-dir /path/to/cppcheatsheet

Manual installation (requires cloning the repo):

git clone https://github.com/crazyguitar/cppcheatsheet.git
mkdir -p ~/.claude/skills
cp -r cppcheatsheet/skills/cpp ~/.claude/skills/cpp

C/C++ Interview Cheatsheet

Curated C and C++ interview questions indexed by topic — each question links directly to the section of the cheat sheet that answers it. Use it for quick review before an interview, or to drill down on a specific area (RAII, move semantics, templates, concurrency, and more).

  • C/C++ Interview Cheatsheet

Modern C Programming

Core C language features from C11 to C23, including memory management, preprocessor macros, GNU extensions, and build systems.

  • C Basics
  • Memory
  • Preprocessor & GNU Extensions
  • Makefile
  • X86 Assembly

Modern C++ Programming

Modern C++ features from C++11 to C++23. Covers resource management with RAII and smart pointers, generic programming with templates and concepts, functional patterns with lambdas, compile-time computation with constexpr, and asynchronous programming with coroutines.

  • C++ Basics
  • Resource Management
  • Move Semantics
  • String
  • Container
  • Iterator
  • Template
  • Casting
  • Polymorphism
  • Type Erasure
  • Constexpr
  • Lambda
  • Concepts
  • Requires
  • Time
  • Smart Pointers
  • Return Value Optimization
  • Algorithm
  • Coroutine
  • Modules
  • CMake

System Programming

POSIX system programming covering process management, file I/O, signals, network sockets, threading, and inter-process communication.

  • Process
  • File
  • Signal
  • Socket
  • Thread
  • IPC

CUDA Programming

GPU programming with NVIDIA CUDA. Covers kernel basics, memory hierarchy, cooperative groups, memory visibility, asynchronous pipelines, and multi-GPU communication.

  • CUDA Basics
  • CUDA C++ (libcu++)
  • Thrust
  • Cooperative Groups
  • Memory Visibility
  • CUDA Graph
  • Quantization
  • Pipelines
  • GPU-GPU Communication
  • NCCL
  • Hardware Topology

Bash & System Tools

Command-line tools and shell scripting for system administration, networking, and hardware inspection.

  • Bash
  • Operating System
  • Network
  • Hardware
  • GPU
  • Systemd

Debugging & Profiling

Tools for debugging, memory analysis, and performance profiling of C/C++ and CUDA applications.

  • GDB
  • Valgrind
  • Sanitizers
  • Tracing
  • Perf
  • Nsight Systems
  • Binary Tools

Rust for C++ Developers

Rust programming guide for C++ developers. Maps C++ concepts to Rust equivalents with side-by-side code comparisons covering ownership, traits, error handling, smart pointers, and concurrency.

  • Basics
  • Ownership & Borrowing
  • RAII & Drop
  • Strings
  • Collections
  • Iterators
  • Traits & Generics
  • Polymorphism
  • Casting
  • Const Functions
  • Closures
  • Smart Pointers
  • Error Handling
  • Threads
  • Macros
  • Modules
  • FFI & C++ Bindings

Blog

Deep dives into advanced topics with detailed explanations, low-level implementations, and working code examples.

  • Building NVSHMEM from Scratch: GPU-Initiated Networking

About

C/C++ Cheat Sheet

cppcheatsheet.com

Topics

ccheatsheetcppcpp20cpp23cudarust

Resources

Readme
MIT license
Activity

Stars

294 stars

Watchers

3 watching

Forks

52 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.