Start Date: 06/03/2022
Course Overview
This course provides a practical hands-on introduction to the C++ programming language. Participants will learn the central concepts of the C++ language. The use of object-oriented techniques in C++ is explained within the framework of the course.
Who should attend?
Programmers who want to learn C++.Prerequisite:
Some programming experience. An introduction to object oriented programming or equivalent.
Course Outline:
1. Introduction to C++
• History
• Advantages and disadvantages of C++
• Compilation and execution
2. C++ Overview
• Program structure
• Comments
• Declaration v definition
• Operators
• Header files
• Libraries
• Examples
3. Types and Declarations
• Fundamental types
• Boolean
• Character
• Integer
• Floating Point
• Enumerations
• Scope
• Constants
• Initialization
4. Basic Input/Output
• Standard output (cout)
• Standard input (cin)
• Exercises
5. Pointers, arrays and structures
• Pointers
• Arrays
• References
• Structures
• Exercises
6. Functions
• Prototyping
• Definition
• Return value
• Parameters
• Exercises
• If-else
• while
• do-while
• for
• break and continue
• switch
• auto-increment, auto-decrement
• Exercises8. Memory Allocation
• Dynamic memory
• Stack, heap
• Operators new and delete9. Classes in C++
• Access
• Constructors and destructors
• Static members
• Copying
• Constants
• Self-reference
• Mutable
• Initialization
• Scope
• Friends
• Exercises
10. File Input/Output in C++
• File stream classes
• Opening and closing a file
• State
• -Get and put stream pointers
• Text and binary files
• Buffers and synchronization
• Exercises
11. Summary