Page 3: Comparison Operators and Control Structures
This page explains comparison operators and conditional statements in C++ podstawy.
Definition: Conditional statements if−else control program flow based on specific conditions.
Example: Basic if-else structure:
if (a < b) {
cout << "A is less than B";
} else {
cout << "A is greater than or equal to B";
}
Vocabulary: Logical operators: && (AND), || (OR), ! (NOT)
Highlight: Comparison operators ==,!=,>,<,>=,<= return boolean values (true or false).
The page thoroughly explains logical operators and their precedence in expressions, which is crucial for creating complex conditional statements in C++ programs.