The Notes for Professionals book is compiled from Stack Overflow Documentation, the content is written by the beautiful people at Stack Overflow. Text content is released under Creative Commons BY-SA. See credits at the end of this book whom contributed to the various chapters. Images may be copyright of their respective owners unless otherwise specified
Book created for educational purposes and is not affiliated with group(s), company(s) nor Stack Overflow. All trademarks belong to their respective company owners
https://goalkicker.com/
章节目录
1-1
Content list
1-2
About
1-3
Chapter 1: Getting started with C++
1-4
Section 1.1: Hello World
1-5
Section 1.2: Comments
1-6
Section 1.3: The standard C++ compilation process
1-7
Section 1.4: Function
1-8
Section 1.5: Visibility of function prototypes and declarations
1-9
Section 1.6: Preprocessor
1-10
Chapter 2: Literals
1-11
Section 2.1: this
1-12
Section 2.2: Integer literal
1-13
Section 2.3: true
1-14
Section 2.4: false
1-15
Section 2.5: nullptr
1-16
Chapter 3: operator precedence
1-17
Section 3.1: Logical && and || operators: short-circuit
1-18
Section 3.2: Unary Operators
1-19
Section 3.3: Arithmetic operators
1-20
Section 3.4: Logical AND and OR operators
1-21
Chapter 4: Floating Point Arithmetic
1-22
Section 4.1: Floating Point Numbers are Weird
1-23
Chapter 5: Bit Operators
1-24
Section 5.1: | - bitwise OR
1-25
Section 5.2: ^ - bitwise XOR (exclusive OR)
1-26
Section 5.3: & - bitwise AND
1-27
Section 5.4: << - left shift
1-28
Section 5.5: >> - right shift
1-29
Chapter 6: Bit Manipulation
1-30
Section 6.1: Remove rightmost set bit
1-31
Section 6.2: Set all bits
1-32
Section 6.3: Toggling a bit
1-33
Section 6.4: Checking a bit
1-34
Section 6.5: Counting bits set
1-35
Section 6.6: Check if an integer is a power of 2
1-36
Section 6.7: Setting a bit
1-37
Section 6.8: Clearing a bit
1-38
Section 6.9: Changing the nth bit to x
1-39
Section 6.10: Bit Manipulation Application: Small to Capital Letter
1-40
Chapter 7: Bit fields
1-41
Section 7.1: Declaration and Usage
1-42
Chapter 8: Arrays
1-43
Section 8.1: Array initialization
1-44
Section 8.2: A fixed size raw array matrix (that is, a 2D raw array)
1-45
Section 8.3: Dynamically sized raw array
1-46
Section 8.4: Array size: type safe at compile time
1-47
Section 8.5: Expanding dynamic size array by using std::vector
1-48
Section 8.6: A dynamic size matrix using std::vector for storage
1-49
Chapter 9: Iterators
1-50
Section 9.1: Overview
1-51
Section 9.2: Vector Iterator
1-52
Section 9.3: Map Iterator
1-53
Section 9.4: Reverse Iterators
1-54
Section 9.5: Stream Iterators
1-55
Section 9.6: C Iterators (Pointers)
1-56
Section 9.7: Write your own generator-backed iterator
1-57
Chapter 10: Basic input/output in c++
1-58
Section 10.1: user input and standard output
1-59
Chapter 11: Loops
1-60
Section 11.1: Range-Based For
1-61
Section 11.2: For loop
1-62
Section 11.3: While loop
1-63
Section 11.4: Do-while loop
1-64
Section 11.5: Loop Control statements : Break and Continue
1-65
Section 11.6: Declaration of variables in conditions
1-66
Section 11.7: Range-for over a sub-range
1-67
Chapter 12: File I/O
1-68
Section 12.1: Writing to a file
1-69
Section 12.2: Opening a file
1-70
Section 12.3: Reading from a file
1-71
Section 12.4: Opening modes
1-72
Section 12.5: Reading an ASCII file into a std::string
1-73
Section 12.6: Writing files with non-standard locale settings
1-74
Section 12.7: Checking end of file inside a loop condition, bad practice?
1-75
Section 12.8: Flushing a stream
1-76
Section 12.9: Reading a file into a container
1-77
Section 12.10: Copying a file
1-78
Section 12.11: Closing a file
1-79
Section 12.12: Reading a `struct` from a formatted text file