Control Structures in C++: Using Conditional Control Structures

C++ 17    |    Beginner
  • 14 videos | 1h 38m 17s
  • Includes Assessment
  • Earns a Badge
Control structures in C++ are syntactically very similar to those in C, but with some important differences. This course will help you learn to use control structures in C++ and better understand how they differ from those in C. You will start this course by going over the control structures available in C++. You will then move on to working with vectors and iterators over vectors, which are important parts of the standard template library. Finally, you will work with switch statements and learn some tips and tricks related to working with cases based on strings. Upon completion, you'll be able to use variables in the condition of an if-block to restrict its scope, and use switch statements with hash functions and the STL map object to switch based on the values of a string.


  • discover the key concepts covered in this course
    outline different control structures in C++
    modify the flow of a program with if-blocks
    overload operators and use them in if statements
    create vectors and check whether they are empty
    iterate over vectors and search for a specific element
    create variables in if-block signatures
  • chain relational checks using logical operators
    create enums and switch statements
    create variables in switch statements scope and switch statements on characters
    create switch statements on strings
    create switch statements on variables created with function calls
    create switch statements on strings through enums
    summarize the key concepts covered in this course


  • 2m 42s
  • 8m 17s
  • Locked
    3.  Creating if-blocks and if-else-if Ladders
    7m 31s
  • Locked
    4.  Using Overloaded Relational Operators
    6m 53s
  • Locked
    5.  Introducing Vectors
    9m 45s
  • Locked
    6.  Creating Iterators on Vectors
    8m 42s
  • Locked
    7.  Creating Variables in an if-block Scope
    6m 18s
  • Locked
    8.  Using Logical Operators
    7m 41s
  • Locked
    9.  Creating Switch Statements
    7m 31s
  • Locked
    10.  Creating Variables in the Scope of Switch Statements
    7m 39s
  • Locked
    11.  Creating Cases Based on Strings in Switch Statements
    7m 56s
  • Locked
    12.  Exploring the Finer Points of Switch Statements
    5m 24s
  • Locked
    13.  Creating Switch Statements on Strings
    8m 29s
  • Locked
    14.  Course Summary
    3m 29s


Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.