EE 102 Sample Programs for Adams & Nyhoff textbook
Note: examples have been being added and improved
after the recorded course took place based on the more recent course
teachings.
-
First Programs, Data Types
-
Data types, variable declaration and exporessions (Chapters 2 through 3)
-
Examples how to format printouts (including older compilers)
-
Functions and more programming
- Functions
- selection with if and if-else
- repetition with for loops
-
Introduction to predefined classes
-
More about selection and repetition statements
-
Functions in Depth
- Passing variables by reference
- Overview of some advanced C++ function features
- Recursive functions
-
Files
- Reading from a text file
- More file processing, writing to a text file
- Processing numerical data from a text file
-
Arrays
- The step by step introduction - compare the group of programs (may be too slow for impatient readers)
- Arrays and functions
-
2D Arrays
-
Introduction to Pointers
-
C-style Strings (Class Notes only, low-end small embedded systems level)
Source code listings were prepared using Code2HTML, courtesy of Peter Palfrader.