Control Structures in C++: Using Conditional Control Structures

C++    |    Beginner
  • 14 videos | 1h 38m 17s
  • Includes Assessment
  • Earns a Badge
Rating 4.1 of 21 users Rating 4.1 of 21 users (21)
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.

WHAT YOU WILL LEARN

  • 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

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

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

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.

YOU MIGHT ALSO LIKE

Rating 4.2 of 111 users Rating 4.2 of 111 users (111)
Rating 4.9 of 15 users Rating 4.9 of 15 users (15)
Rating 4.3 of 6 users Rating 4.3 of 6 users (6)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.6 of 301 users Rating 4.6 of 301 users (301)
Rating 4.5 of 26 users Rating 4.5 of 26 users (26)
Rating 4.2 of 46 users Rating 4.2 of 46 users (46)