Description
This course teaches you the basic differences between C++ and C using an evolutionary approach to learning C++. A C programmer will be able to immediately write simple programs in C++ and quickly gain the skills to write more complex functions and programs
Content:
Module 1: Course introduction
Course introduction
Prerequisites
What you need
What to expect Course project
Meet your tutor
Meet your instructor C++ compilers
Module 2: Getting started with C++
Getting started with C++
Output
Input
Similarities in C and C++ program structure
Differences in C and C++ program structure
Boolean expressions
String functions
Casts
Declarations and enumerated types
Initializing enumerated lists
Declaration scope
Comment style
Module wrap-up
Module 3: Functions and scope
Functions and scope
Function prototypes
Default arguments
Overloading functions
Inlining
Scope
Storage classes
Initializing external and static variables
Linkage rules
Namespaces
Anonymous namespaces
Module wrap-up
Module 4: Pointers and memory allocation
Pointers and memory allocation
The const keyword
Creating const pointer arguments to functions
Reference declarations
Call-by-reference
The generic pointer type
The generic pointer type as a formal parameter
Free store operators
The operator new
The operator delete
A dynamic array
Dynamic multidimensional arrays
The allocate() function
The deallocate() function
The findmax() function
The main() function
Module wrap-up
Module 5: Course wrap-up
Course wrap-up
Course project
Where to go from here
Help us help you learn!
Objectives:
Upon completion of this course, you should be able to:
· Use function prototypes and static_cast to ensure type safety.
· Use the single-line comment style
· Use reference declarations to creates aliases for variables
· Pass arguments to functions using call-by-reference
· Implement dynamically allocated multidimensional arrays