C++ Developer

5 Day Course
Hands On
Code CPLUSDEV

Book Now - 2 Delivery Methods Available:

Classroom Virtual Classroom Private Group - Virtual Self-Paced Online

Overview

C++ is a powerful, multi-paradigm, general-purpose programming language. It may be used to build almost anything from operating systems to games. This hands-on course endeavours to provide the fundamental skills needed to become a C++ Developer.

Note: This is not a course for beginners. The delegate is expected to be familiar with programming concepts and have had some coding experience. If this is not the case, then they should consider attending our Introduction to Programming course instead.

Exercises and examples are used throughout the course to give practical hands-on experience with the techniques covered.

Objectives

The delegate will learn and acquire skills as follows:

  • Write, compile, and execute a C++ program; read from stdin and write to stdout
  • Declare, initialise, and modify variables using all the built-in types
  • Build expressions using arithmetic, relational, and logical operators
  • Define and call functions; assemble multi-file programs
  • Determine the scope of a variable; perform type conversions
  • Code decisions and loops
  • Declare, initialise, use and manipulate arrays and strings
  • Make the case for, and use pointers and references appropriately
  • Pass arguments to a function by value, reference, and address; likewise return
  • Define encapsulated classes with attributes and methods; create and use objects
  • Overload operators
  • Code composite and aggregate object relationships
  • Code inheritance hierarchies
  • Exploit polymorphism using virtual methods
  • Construct and use template functions and classes
  • Handle exceptions
  • Read from a file and write to a file

Target Audience

The C++ Developer course is aimed at anyone who has had some coding experience seeking to become a C++ Developer. The course is also suitable for existing developers seeking to migrate to C++.

Training Partners

We work with the following best of breed training partners using our bulk buying power to bring you a wider range of dates, locations and prices.

Modules

Hide all

Getting Started (9 topics)

  • The C++ language
  • C++ editors
  • Program structure
  • Statements
  • Comments
  • The main function
  • Introduction to variables, literals, and expressions
  • Reading from stdin (cin) and writing to stdout (cout)
  • Compilation, execution, and debugging

Variables and Data Types (14 topics)

  • Variable definition
  • Variable initialisation (copy, direct, brace/uniform)
  • Variable assignment
  • Integers
  • Floating point numbers
  • Boolean
  • Introduction to if statements
  • Characters
  • Strings
  • Enums
  • Structs
  • Literals
  • Constants
  • Naming conventions

Operators (8 topics)

  • Operator precedence and associativity
  • Arithmetic operators
  • The cmath library
  • Increment and decrement operators
  • Comma and conditional operators
  • Relational operators
  • Floating point number comparison
  • Logical operators

Functions (11 topics)

  • Definition
  • Invocation
  • Return values
  • Parameters and arguments
  • Local scope
  • Forward declarations and definitions
  • Multi-file programs
  • Namespaces
  • The preprocessor
  • Header files
  • Header guards

Scope and Conversions (10 topics)

  • Blocks
  • Local variables
  • Global variables
  • Shadowing
  • Internal and external linkage
  • Global constants and inline variables
  • Static local variables
  • Type aliases
  • The auto keyword
  • Implicit and explicit type conversion

Decisions and Loops (6 topics)

  • If statements
  • Switch statements
  • Goto statements
  • While loops
  • For loops
  • Break and continue

Arrays and Strings (13 topics)

  • Array declaration
  • Array initialisation
  • Array indexing
  • Passing arrays to functions
  • Sizing an array
  • Traversing an array
  • Sorting an array
  • Multi-dimensional arrays
  • Standard strings
  • Reading a line from cin using std::getline
  • Concatenating strings
  • Sizing a string
  • C-style strings

Pointers and References (15 topics)

  • The address-of operator
  • The dereference operator
  • Pointers
  • Pointer declaration and assignment
  • Null pointers
  • Pointers and arrays
  • Dynamic memory allocation
  • Smart pointers
  • References
  • Reference declaration and initialisation
  • References as function parameters
  • Using references to pass arrays to functions
  • Pointers vs. references
  • The for each loop
  • Introduction to std::array and std::vector

More Functions (6 topics)

  • Parameters and arguments revisited
  • Passing arguments by value, reference, and address
  • Returning values, references, and addresses
  • Inlining
  • Overloading
  • Default arguments

Classes and Objects (14 topics)

  • Classes, attributes, and methods
  • Creating an object of a class
  • Getting and setting an object's attributes
  • Calling an object's methods
  • Access specifiers
  • Encapsulation
  • Constructors
  • Member initialisation
  • Destructors
  • The this pointer
  • Class definitions and header files
  • Const objects and member functions
  • Static attributes and methods
  • Friendly methods and classes

Operator Overloading (7 topics)

  • Arithmetic operator overloading using friendly and normal functions
  • IO operator overloading
  • Operator overloading using member functions (methods)
  • Other operator overloading
  • The copy constructor
  • Copy initialisation
  • Shallow vs. deep copying

Composition and Aggregation (5 topics)

  • Object relationships
  • Composition
  • Aggregation
  • Associations
  • Dependencies

Inheritance (8 topics)

  • What is inheritance and what is its purpose
  • Base and derived classes
  • Inheritance chains
  • Derived class constructors
  • Inheritance and access specifiers
  • Extending base class functionality
  • Overriding base class functionality
  • Multiple inheritance

Polymorphism (10 topics)

  • What is polymorphism and what is its purpose
  • Pointers and references to derived objects
  • Virtual functions
  • The override specifier
  • The final specifier
  • Pure virtual functions
  • Abstract base classes
  • Interface classes
  • Virtual base classes
  • Dynamic casting

Templates (6 topics)

  • What is a template and what is its purpose
  • Function templates
  • Template classes
  • Non-type parameters
  • Function template specialisation
  • Class template specialisation

Exception Handling (9 topics)

  • Syntax and semantic errors
  • Detecting and handling assumption errors
  • Assert and static_assert
  • Return codes
  • Exceptions
  • Handling exceptions with try catch
  • Throwing and re-throwing exceptions
  • Catch-all handlers and exception specifiers
  • Custom exception classes

Input and Output (7 topics)

  • Streams
  • The iostream library
  • Standard streams
  • The insertion and extraction operators
  • Manipulators
  • istream and ostream
  • ifstream and ofstream

Prerequisites

Delegates attending this course should have some previous programming experience and be able to define general programming concepts including: compilation, execution, variables, arrays, sequence, selection, iteration, functions, objects, and classes. Moreover delegates should be able to navigate the filesystem (on the command line ideally), edit and save text files and browse the web. This knowledge can be obtained by attendance on the pre-requisite Introduction to Programming course.

Additional Learning

The courses below may help you meet the knowledge level required to take this course.

  • Introduction to Programming

    This 3-day course provides the skills necessary to write simple programs that demonstrate an understanding of the three core principles of programming - sequence, selection, and iteration.

    3 Day Course Hands On Training Course Code ITP
    Classroom Virtual Classroom Private Group - Virtual Self-Paced Online

Scheduled Dates

Please select from the dates below to make an enquiry or booking.

Pricing

Different pricing structures are available including special offers. These include early bird, late availability, multi-place, corporate volume and self-funding rates. Please arrange a discussion with a training advisor to discover your most cost effective option.

Code Location Duration Price Feb Mar Apr May Jun Jul
CPLUSDEV 5 Days $3,150
22-26

Course PDF

Print

Share this Course

Share

Recommend this Course

Sections