Introductory Programming Using C++

This web page contains a set of learning modules to introduce to entry level students the concepts of programming using the vehicle language C++. These modules will teach the language components needed to write programs in C++, as well as lay the foundation needed to take advanced course work in object oriented programming with C++. In order to use these modules you will need to acquire a Turbo C++ compiler for Windows (should cost about $50).

Each of the topics are in the following format: a written segment (in a PostScript file format) and the accompanying set of programs to be used with the compiler (in a self-extracting zip file). Simply download the set of files for each module, printing the .PS files on a PostScript printer and executing the .EXE file, which will self-extract the programs. Directions to download Ghostview/Ghostscript, which can be used to print postscript files on PC. The exe file needed to install Ghostview/Ghostscript.

If you are using Netscape, to download the program sets or the ghostview/ghostscript installation file, you will need to use a shift click rather than a simple click on the link. Simply hold down the shift key while you click on the link.

Modules

I. The Turbo C++ environment

This topic will help the student become familiar with the Turbo C++ integrated program development environment (IDE) and the structure of a C++ program. It also includes material introducing problem solving and program development.

Download the module                Download the program set

II. Introduction to the C++ Language

This section introduces the sequential language statements. The student will become familiar with elementary data types and the declare statement, the preprocessor statements of: include and define, and C++'s input and output statements. The arithmetic operators are presented as well as using the operations within the assignment statement. The increment and decrement statements are also introduced.

Download the module               Download the program set

III. Modular Programming with Functions

This section introduces top down functional decomposition and the development of modules, implemented through Functions in C++. Parameter passing is discussed as well as returning values through the function name.

Download the module               Download the program set

IV. C++ Control Structures I

C++'s relational and logical operators and expressions are presented. The control statement of BREAK, the selection structures of the IF THEN ELSE and SWITCH statements, and the iteration statements of the DO, WHILE, and FOR Loop are introduced.

Download the module                Download the program set

V. C++ Control Structures II

Advanced topics such as enumeration types, compound logical expressions, and nesting of both selection and iteration statements are discussed.

Download the module                Download the program set

VI. Advanced Data Types

Composite data structures are described. One-dimensional arrays are introduced and an example implementation of one-dimensional arrays, strings are discussed.

Download the module                Download the program set

VII. Structures and Abstract Data Types (ADT)

Heterogenous composite data structures are discussed as well as encapsulation of the structure and the operations needed to implement that structure.

Download the module                Download the program set