OOP Using C++: Week 1 begins with a basic explanation of C++ components and quickly progresses to writing real object-oriented programs. Sample listings
complete with sample output and an analysis of code
illustrate the topics of the day.
This course is for the beginning programmer or for the experienced programmer who wants to learn C++.
Product Code: CPPC01
After completing OOP Using C++: Week 1
the user should be able to:
|Use data types
|Use operators to manipulate C++ expressions|
|Do advanced programming with functions|
|Use statements and loops to control program flow|
|Use classes and objects|
compile and link C++ programs|
Day 1: Getting Started
Discusses why C++ is the emerging standard. Identifies the steps to develop a C++ program. Explains how to enter
compile and link a C++ program.
Day 2: The Parts of a C++ Program
Analyzes the parts of a C++ program. Demonstrates how the parts work together. Examines what a function is and what it does.
Day 3: Variables and Constants
Covers how to declare and define variables and constants. Shows how to assign values to variables and manipulate those values. Demonstrates how to write the value of a variable to the screen.
Day 4: Expressions and Statements
Describes what statements
blocks and expressions are. Shows how to branch code based on conditions. Discusses what truth is and how to act on it.
Day 5: Functions
Examines what a function is and what its parts are. Illustrates how to declare and define functions
pass parameters into functions and return a value from a function.
Day 6: Basic Classes
Explains what classes and objects are. Demonstrates how to define a new class and create objects of that class. Discusses what member functions and member data are. Describes what constructors are and how to use them.
Day 7: More Program Flow
Explains what loops are and how they are used. Shows how to build various loops. Presents an alternative to deeply-nested if/else statements.
Week 1 in Review
Presents a program that uses the skills learned during the week.
Provides reference tables for operator precedence
and binary and hexadecimal. Lists example programs.
This course includes the following materials:
|Files of sample program listings and answers to programming exercises|