First 5 Modules of C++20 Fundamental by Paul Deitel.
- Preprocessor: Used for processing directives before actual compilation. e.g.,
#include
. - Object File: Compiled but not linked code snippet.
- Garbage Value: Uninitialized variable holding random data.
- println: Will be added in C++23 for easier printing.
length()
starts_with()
ends_with()
: String functions for string manipulation.setprecision
: Manipulator to set the precision of floating-point numbers. (iomanip)fixed
andscientific
: Manipulators to set the output format of floating-point numbers. (iostream)format
header: For advanced output formatting. Example usage::>20.2f
.[[fallthrough]];
: Indicates intentional fall-through in switch cases.using enum
: Allows scoped enums to be used without prefix.inline
keyword: Recommends to declare small and time-sensitive functions as inline.boolalpha
: Manipulator that returns values as true/false instead of 1/0. (iostream)static
keyword: Used to declare variables that retain their values between function calls.default argument values
: Typically specified in headers to maintain consistency.- Narrowing Conversion: Causes compilation errors; e.g.,
int x{12.0}
. <numbers>
header: Provides mathematical constants.
- Boost Library: Uses types like
cpp_int
anddec_float_50
for precise calculations. - Banker Rounding: A rounding strategy used in financial calculations.
- Go-style Conditional:
if(command; condition)
for cleaner control flow. - Use single quotes on numbers: Enhances readability, e.g.,
1'000'000
. - Block for scoping
{}
: Encourages declaring variables in the minimal necessary scope.
- Open-std.org: Official site for C++ standards.
- CppCoreGuidelines: Guidelines for C++ programming.
- cppreference.com: Specifically the headers section for detailed library information.
- Awesome C++: A curated list of awesome C++ frameworks, libraries, etc.
Tags: C++
, Programming
, Coding Standards