Essential C++ programming concepts for informatics olympiads.
Baby Steps
What This Unit Covers
Explaining the scope of this unit.
Hello, World!
Writing your first C++ program.
Variables
Learn how to store and manage data using variables in C++.
Comments
Putting notes on your code.
Input and Output
Learning to interact with your program: taking input and displaying output.
Manipulating Data
Built-in Types
Fundamental data types in C++.
Type Casting
Converting value from one type to another.
Operators
Performing operations on literals and variables.
Control Structures
Conditionals
Making decisions in your program.
Switch Statement
Switch: Specialized Conditional Syntax for Testing a Value.
Loops
Running some code repeatedly.
Scope
Understanding variable scope in C++.
Functions
Defining and calling functions to organize code.
Data Types
Strings
Manipulating text data using `std::string`.
Pointers and References
Understanding memory addresses and aliases in C++.
Pairs
Using `std::pair` to store two heterogeneous objects.
Structs
Defining custom data types with structures in C++.
Templates
Introduction to C++ templates for generic programming.
Standard Library
Arrays
Storing collections of elements with fixed-size arrays.
Vectors
Working with dynamic arrays using `std::vector`.
Deques
Using `std::deque` for double-ended queues.
Maps
Associative containers for key-value pairs using `std::map`.