Search our courses
Training

This C++ for Non C Programmers training course is a comprehensive hands-on introduction to object oriented programming in C++ for non-C programmers. Emphasis is placed on the features of C++ that support effective modeling of the problem domain and reuse of code. The course consists of two modules. The first module introduces the core C features of C++, with simplified input/output through iostreams. The module begins with simple hands- on programming using C++ to do input, computation and output. The C++ data types are covered, and simple if tests and loops are covered. C++ program structure is introduced. Pointers, addressing, and arrays are discussed. Structures and unions are covered. In the second module, object-oriented concepts are introduced. The C++ class construct is introduced and its key features elaborated step-by-step, providing full implementation of abstract data types. C++ memory management is discussed. Function and operator overloading and the use of references are covered. The scope and access control mechanisms of C++ are described. Inheritance is introduced. The use of virtual functions to implement polymorphism is discussed. Extensive programming examples and exercises are provided. The course is current to ANSI standard C++ and is designed so that it can be taught in any environment with an ANSI C++ compiler. 

C++ for Non C Programmers

Course Code

GTPL12

Duration

5 Days

Course Fee

POA

Accreditation

N/A

Target Audience

  • Non-C programmers who are moving to object oriented programming in C++.

Attendee Requirements

  • Knowledge of a programming language.

If you have any questions or doubts as to whether you meet the pre-requisites for this course, or indeed are wondering which course best suits you, please Contact Us to discuss your suitability for course attendance.

Expand all

Course Description

This C++ for Non C Programmers training course is a comprehensive hands-on introduction to object oriented programming in C++ for non-C programmers. Emphasis is placed on the features of C++ that support effective modeling of the problem domain and reuse of code. The course consists of two modules. The first module introduces the core C features of C++, with simplified input/output through iostreams. The module begins with simple hands- on programming using C++ to do input, computation and output. The C++ data types are covered, and simple if tests and loops are covered. C++ program structure is introduced. Pointers, addressing, and arrays are discussed. Structures and unions are covered. In the second module, object-oriented concepts are introduced. The C++ class construct is introduced and its key features elaborated step-by-step, providing full implementation of abstract data types. C++ memory management is discussed. Function and operator overloading and the use of references are covered. The scope and access control mechanisms of C++ are described. Inheritance is introduced. The use of virtual functions to implement polymorphism is discussed. Extensive programming examples and exercises are provided. The course is current to ANSI standard C++ and is designed so that it can be taught in any environment with an ANSI C++ compiler. 

Course Outline

1. 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

2. 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      

3. Logical and Bit Operations
Bool Variables
Bool Operations and Truth Tables
Relational Operators            
If Tests            
Flow Chart            
A Pitfall
Bitwise Operators            
Bitwise Operator Truth Tables
Short Circuit Evaluation
Shifting            
Masking     

4. 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

5. 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

6. 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

7. Structures and Unions         
Fundamentals of Structures
Structure Declaration            
Structures and Functions
Typedef            
Arrays of Structures
Array of Structures Initialization
Unions

8. Concepts of Object-Oriented Programming
Object
State and Behavior
Abstraction            
Encapsulation            
Class and Instantiation
Abstract Data Types
Methods            
Invoking Methods            
Messages            
Class Inheritance            
Polymorphism

9. 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

10. Functions in C++
Function Prototypes in C++
Strong Type Checking
Conversion of Parameters            
Inline Functions            
Inline Functions in Header Files
Default Arguments            
Function Overloading            
Argument Matching            
Argument Matching through Promotion
Match through Type Conversion
Call by Value

11. Constructors and Destructors
The Problem of Initialization
Constructors and Initialization
Constructor in Stack Class
Object Creation and Destruction
Destructors            
Multiple Constructors            
String Class Implementation            
Hidden Constructors            
Using a Default Argument

12. Memory Management in C++
Why is Memory Management Important in C++?
Choices for an Object’s Memory
Typical Memory Layout
Free Store Allocation
new Operator            
Memory Allocation Errors
new vs. malloc            
delete Operator            
Destructor (Review)            
Hiding Memory Management
String Class Specification (Version 2)
String Class Implementation            
String Class Bug

13. References and Argument Passing in C++
Variables
Argument Passing            
Call-by-Value            
Reference Declarations            
Call-by-Reference            
Copy Constructor            
Default Copy Constructor
Bug in String Class
Specification of String Class
Implementation of String Class
Test Program            
Output of Test Program
Review of Constant Types
Constants and Arguments
Chains of Functions Calls
const Objects and Member Functions

14. Operator Overloading, Initialization, and Assignment
Operator Overloading
Operator Functions            
Semantics of return
Returning a Temporary Object
Returning a Reference            
Initialization vs. Assignment
Semantics of Assignment
Assignment            
Assignment Bug            
Overloading =  
Review of this Pointer
Type Conversions            
Conversion by Construction            
Overloading Cast Operator
Test Program

15.Scope and Access Control
Scoping in C++
Block and Function Scope
File and Global Scope
Class Scope            
Constant Types and Scope
Enumeration Types            
Enumeration Types and Class Scope
:: for Global Data
Static Class Members            
Initialization of Static Member
Static Function Class Members
Access Control            
Friend Functions            
Invoking Member and Friend Functions
Implementing a Friend Function
Efficiency and Friend Functions

16. 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

17. 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           

Learning Path
Ways to Attend
  • Attend a public course, if there is one available. Please check our Schedule, or Register Your Interest in joining a course in your area.
  • Private onsite Team training also available, please Contact Us to discuss. We can customise this course to suit your business requirements.

Private Team Training is available for this course

We deliver this course either on or off-site in various regions around the world, and can customise your delivery to suit your exact business needs. Talk to us about how we can fine-tune a course to suit your team's current skillset and ultimate learning objectives.

Private Team Training | Contact us

Technical ICT learning & mentoring services

Private Team Training

Our instructors are specialist consultants with vast real world experience and expertise allowing them to design and deliver client-focused courses for your organisation.

Learn more about our Private Team Training

What Our Clients Say

"Absolutely fantastic training. Thoroughly enjoyed it thanks to our highly enthusiastic tutor.  It wouldn't be an understatement to say that it was the best professional training that I have ever received."

 

Customised Linux with Networking

Live Online -  February 2022

 

"The course content was very good. When needed, the Instructor was extending the content of the course with hints and tips to help us understand different topics that were covered in the course."

 

Kubernetes Administration Certification - GTLFK

Live Online June 2021

 

 

 

“The course was held at the highest possible standards, the instructor was excellent, well prepared, well informed, and clearly an SME. Top marks.”

 

Professional Cloud Service Manager - GTC13

Live Online December 2021

 

“Very engaging and practical course so hope to be able to put the learning into practice.”

 

Being Agile in Business - GTBAB

Live Online September 2021

 

“Great instructor, who encouraged active participation. The breakout groups and exercises kept the group engaged and the content relevant to our own products”.

 

Site Reliability Engineering Foundation - GTDSRE

Live Online January 2022

 

 

 

"Intelligence is the ability to avoid doing work, yet
getting the work done"

Linus Torvalds, creator of Linux and GIT

Technical ICT learning & mentoring services

About GuruTeam

GuruTeam is a high-level ICT Learning, Mentoring and Consultancy services company. We specialise in delivering instructor-led on and off-site training in Blockchain, Linux, Cloud, Big Data, DevOps, Kubernetes, Agile, Software & Web Development technologies. View our Testimonials

Download our eBrochure
Our Accreditation Partners
  •  
  •  
  •  

 

Upcoming Courses

Kubernetes Administration

11th - 14th March 2024

26th - 29th March 2024

Live Online

 

This Kubernetes Administration Certification training course is suitable for anyone who wants to learn the skills necessary to build and administer a Kubernetes cluster

Learn More

RUST

11th - 14th March 2024

26th - 29th March 2024

 Live Online

This course will help you understand what Rust applications look like, how to write Rust applications properly, and how to get the most out of the language and its libraries.

Learn More

Introduction to Python 3 

19th - 21st March 2024

9th - 11th April 2024

7th - 9th May 2024

   4th - 6th June 2024

 

Live Online

This Introduction to Python 3 training course is designed for anyone who needs to learn how to write programs in Python or support/modify existing programs.

 

Learn More

 GO LANG TRAINING

11th - 14th March 2024

26th - 29th March 2024

 

Live Online        

 

This Go language programming training course will help you understand how Go works, and immediately be more productive. If you are building a team using Go, this will be a great opportunity to get your team on the same page and speaking the same language. Innovative lab exercises and code samples are provided to reinforce skills and quickly master the topics.

Learn More

Newsletter

Stay up to date, receive updates on scheduled dates, new courses, offers, and events.

Subscribe to our Newsletter