Skip to main content

Instructor-led training

Introduction to C++ for Absolute Beginners Training in Florissant, Missouri

For those students who have little programming experience.

What you'll learn

For those students who have little programming experience.

Private Training for Teams

This course is offered as private, instructor-led training for organizations, onsite in Florissant, Missouri or live online. Dates, delivery format, and course content are arranged around your team's requirements.

This course is not currently scheduled as a public class for individual enrollment.

Request Group Training

Prerequisites

None

Course Outline

First C++ Programs
Hello, World
Compiling and Running
C++ Program Components
Another C++ Program (Preview)
I/O in C++
Variables
Expressions
Assignment
Using C++ as a Calculator
Input in C++
Echo Program
 
Data Types and Operators
Data Types
Strong Typing
Typing in C++
Conversions in C++
Typing in Visual Basic
Primitive C++ Data Types
Signed and Unsigned
Twos Complement
C++ Integer Type Ranges
IntegerRange.cpp
Integer Constants
Variables in C++
Const Variables
Preprocessor Macros
Identifiers
Floating Point Numbers
Floating Point Data Types
Calculations
Integer Operations
Increment and Decrement
Precedence of Integer Operations
Floating Point Operations
op=
Mixed Data Types
Automatic Conversion
Cast
Math Library
 
Loops and Structured Programming
Loops
While Loops
Infinite Loops
Flowcharting a While Loop
Indenting and Curly Braces
Accumulating a Total
Total Using a Sentinel
Counted Loops
Total Using a Counter
For Loops
Total Using a For Loop (Up)
Total Using a For Loop (Down)
Comparing For and While Loops
Variable Scope
Loops and If Tests Together
Nested If Statements
Review of Statements
Compound Statements
Structured Programming
Object-Oriented Programming
 
Functions and Program Structure
Basics of Functions
Function Prototypes and Type Checking
Returning Value
Argument Passing
Pass-by-Reference
Alternative to Pass-by-Reference
External Variables
Block Structure
Scope Rules
Header Files
Preprocessor Directives
Conditional Compilation
Recursion
 
Pointers and Arrays
Pointers and Addresses
Pointers and Function Arguments
Pointers and Arrays
Address Arithmetic
Dynamic Memory Management
Using malloc and free
Array of Pointers
Strings
String Functions
Array of Strings
Command Ling Arguments
Pointers to Functions
 
Structures and Unions
Fundamentals of Structures
Structure Declaration
Structures and Functions
Typedef
Arrays of Structures
Array of Structures Initialization
Unions
 
Concepts of Object-Oriented Programming
Object
State and Behavior
Abstraction
Encapsulation
Class and Instantiation
Abstract Data Types
Methods
Invoking Methods
Messages
Class Inheritance
Polymorphism
Classes in C++
Data Encapsulation in C
The C++ Class
Structures and Class in C++
Implementation of a C++ Class
this Pointer
Code Organization
Scope Resolution Operator
Abstract Data Types
Test Programs for C++ Classes
 
 
Introduction to Inheritance
Inheritance Concept
Inheritance in C++
Employee Test Program
Protected Members
Best Class Initializer List
Composition
Member Initializer List
Order of Initialization
Inheritance vs. Composition
 
Polymorphism and Virtual Functions
A Case for Polymorphism
Dynamic Binding
Pointer Conversion in Inheritance
Polymorphism Using Dynamic Binding
Virtual Function Specification
Invoking Virtual Functions
Vtable
Virtual Destructors
Abstract Class Using Pure Virtual Function
Employee as an Abstract Class

 

Heterogeneous Collections

What makes this material hard to master

The syllabus covers a lot for two days. It runs from a first program to virtual functions, so the main challenge is that each block depends on the one before it.

  • Types are not abstract. Strong typing, signed and unsigned integers, twos complement, integer type ranges, automatic conversion and the cast all show up early. A common misconception is that a variable holds "a number". In C++ it holds a value of a specific size and range, and mixed-type expressions can quietly change results.
  • Control flow and scope. While, counted and for loops, sentinels, nested if statements and variable scope are taught as structured programming. This is where learners practice tracing a program by hand.
  • Functions and memory. Prototypes, pass-by-value versus pass-by-reference, header files, conditional compilation and recursion lead into pointers, address arithmetic, arrays, strings and dynamic allocation with malloc and free. Many beginners find this the steepest part: a pointer is an address, an array name is closely related to one, and allocated memory must be released exactly once.
  • From structures to classes. Structures, typedef and unions come first. Classes then add encapsulation, the this pointer, the scope resolution operator and test programs for classes.
  • Object-oriented behavior. Inheritance, protected members, member initializer lists, order of initialization, composition versus inheritance, dynamic binding, the vtable, virtual destructors, pure virtual functions and heterogeneous collections. Learners often assume a base-class pointer will call the derived behavior. It only does so when the function is virtual.

Who it suits and what to take next

The course is introductory and lists no prerequisites. It suits people with little programming experience, such as testers, analysts, or developers from another language who need to read or begin writing C++. The syllabus includes a short comparison with Visual Basic typing, which helps people coming from that background.

Because it spans so much material in two days, it works best as an orientation and a base for further study. For a longer, fuller treatment of the language, the C++ Programming for Non-C Programmers course (5 days) is a natural next step, since it revisits fundamentals at a slower pace. Once the class and inheritance basics are comfortable, the C++11/C++14 course (2 days) covers language features that this syllabus does not. The C++ Standard Template Library course (3 days) is the follow-up for working with the library's containers and algorithms. See also the C++ Programming courses and learning guide.

Illustrative scenarios

The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.

  • Reading an existing code base. For example, an analyst inherits a small utility that uses structures, header files and conditional compilation. The syllabus topics on function prototypes, preprocessor directives and structures with functions give the vocabulary to follow it.
  • Building a small command-line tool. A team might write a program that takes command-line arguments, reads input, accumulates totals with a sentinel or counted loop, and prints results. That draws on I/O, loops, arrays, strings and functions.
  • Modeling a simple class hierarchy. A developer might model employees of different kinds behind an abstract class with a pure virtual function. They would keep them in one heterogeneous collection and call the right behavior through base-class pointers. This ties together inheritance, virtual functions, the vtable and virtual destructors.

Using AI coding assistants with these topics

Where they help. AI coding assistants can explain what a short program does, translate a compiler message into plain language, and draft small examples of a loop, a function prototype or a simple class. That suits a beginner who is stuck on an unfamiliar error.

Where they fail. The topics in this syllabus are where subtle errors hide. An assistant may produce code that reads uninitialized variables, overflows a signed integer, mismatches malloc and free, indexes past the end of an array, or returns the address of a local variable. It may also declare a base-class destructor non-virtual, so deleting through a base pointer skips the derived cleanup. Such code often compiles and appears to work. Assistants also tend to substitute library features the syllabus does not cover, which can hide the concept being learned.

How to verify.

  • Compile with warnings enabled and treat them as errors.
  • Run the program under a sanitizer, such as address and undefined-behavior checking, to catch memory and overflow errors.
  • Test boundary inputs: the limits of an integer type, empty input, and the first and last array elements.
  • Trace pointer and loop code by hand or in a debugger before trusting it.

Frequently asked questions

What level is this course?

It is introductory. It starts with a first C++ program, input and output, and variables, and builds to classes, inheritance and virtual functions.

Do I need programming experience first?

No prerequisites are listed. The description says the course is for students with little programming experience.

What does the syllabus cover?

It covers data types and operators, loops, functions and program structure, pointers, arrays and strings, structures and unions, classes, inheritance, composition and polymorphism with virtual functions. It does not list topics beyond these, so see the related courses for further study.

Can this course be delivered privately for our team, onsite or online?

Yes. HSG delivers private training for organizations, either onsite at the client's location or live online.

Can the content be customized?

Private training can be tailored, including to the technology versions your organization uses. You can describe your needs through the training proposal request.

Training locations

Introduction to C++ for Absolute Beginners training across the U.S. and beyond.

We provide private Introduction to C++ for Absolute Beginners training for organizations, onsite at your location or live online, throughout the United States and internationally.

View all Introduction to C++ for Absolute Beginners training locations

Train your team with HSG

Private, instructor-led training customized for your organization.

  • Onsite or live online delivery
  • Customized curriculum
  • For a single employee or an entire team
  • Flexible scheduling
  • Experienced instructors
Request Group Training

Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com

Ready to train your team?

Let's customize this training for your organization.

Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.