Courses

Learn C++

15 lessons · 0 completed

Start
0%
  1. 1 Setting up the C++ Environment and Hello World The "Why" Before the "How": Why C++?Compilers and IDEs: Equipping Your WorkshopYour First C++ Program: "Hello World"Under the Hood: The C++ Build Process (Compile & Link)
  2. 2 C++ Fundamentals: The Building Blocks Variables and Data Types: Storing Your DataConstants and Auto: Modern Value ManagementOperators: Doing Math, Logic, and ComparisonsI/O Streams: Talking to the User with cin and cout
  3. 3 Control Flow: Directing Your Program's Logic Making Decisions: if, else if, and elseChoosing Paths: The switch StatementLooping Concepts: while and do-while LoopsDefinite Iteration: for Loops and Range-based for Loops
  4. 4 Functions: Organizing and Reusing Code Defining and Calling Functions: The BasicsFunction Parameters: Pass by Value vs. Pass by ReferenceReturn Values and Void FunctionsFunction Overloading: Same Name, Different Data +1
  5. 5 Memory Management Basics: Pointers and References Understanding Memory: The RAM LandscapePointers: Variables that Hold AddressesReferences: Safe Aliases for Existing VariablesDynamic Memory Allocation: new and delete
  6. 6 Arrays and Strings: Grouping Data Together C-Style Arrays: The Legacy WayModern C++ Arrays: Using std::arrayDynamic Sizing: Introduction to std::vectorWorking with Text: std::string Manipulation
  7. 7 Object-Oriented Programming (OOP) Basics Classes and Objects: Blueprints and InstancesConstructors and Destructors: Birth and Death of ObjectsAccess Specifiers: public, private, and protectedEncapsulation: Hiding Implementation Details
  8. 8 Advanced OOP: Inheritance and Polymorphism Inheritance: Reusing and Extending CodeMethod Overriding and Virtual FunctionsPolymorphism: One Interface, Many ImplementationsAbstract Classes and Pure Virtual Functions
  9. 9 Modern Memory Management: Smart Pointers The Problem with Raw Pointers (Memory Leaks!)Unique Ownership: std::unique_ptrShared Ownership: std::shared_ptrBreaking Dependency Cycles: std::weak_ptr
  10. 10 Error Handling: Dealing with the Unexpected The Philosophy of Exceptions vs. Error CodesThrowing Exceptions: Sounding the AlarmCatching Exceptions: try and catch BlocksUsing Standard Exceptions (std::exception)
  11. 11 Templates: Writing Generic Code Function Templates: Type-Independent AlgorithmsClass Templates: Generic Data StructuresTemplate Instantiation and ParametersPractical Use Cases for Templates
  12. 12 The Standard Template Library (STL): Containers Sequence Containers: vector, list, and dequeAssociative Containers: map and setUnordered Containers: Hash Maps for SpeedChoosing the Right Container for the Job
  13. 13 The STL: Algorithms, Iterators, and Lambdas Iterators: The Bridge Between Containers and AlgorithmsCommon Algorithms: Sorting, Searching, and CountingTransforming Data with std::transformLambda Expressions: Anonymous Inline Functions
  14. 14 File I/O: Reading and Writing Persistent Data File Streams: ifstream and ofstreamOpening, Closing, and Validating FilesReading and Writing Text DataHandling Binary Files and Serialization Basics
  15. 15 Concurrency: Multithreading Basics Introduction to Multithreading with std::threadPassing Arguments and Joining ThreadsThe Danger of Data RacesProtecting Shared Data with Mutexes and Locks