note:
1-5-comments:1.5
|
Single-line vs multi-line comments, why over-commenting is its own bug, and commenting out code for debugging.
=
note: 2026-06-14
· learncpp.com §1.5, The Cherno — Comments in C++
$ g++ -std=c++20 dan.cpp -o who_is_dan
dan.cpp: In journey ‘learning_cpp’:
dan.cpp:1: note: QA engineer at Jagex, learning C++ from first principles
dan.cpp:2: warning: a QA engineer's notes on learning C++, following learncpp.com and The Cherno
dan.cpp: following learncpp.com and The Cherno, lesson by lesson
compilation succeeded: 2 posts, 3 tags, 0 errors generated.Single-line vs multi-line comments, why over-commenting is its own bug, and commenting out code for debugging.
Starting from zero — what a statement is, what a function is, and why every C++ program needs exactly one main().