[ Last web update: November 14, 2008 ]  Contact: roabel@engineering.uiowa.edu

Department of Electrical & Computer Engineering
57:017 Computers in Engineering

Fall 2008

Lecture Notes

8/25/08

Course Overview
Introduction to laptop computers
In class example: hello.c

8/27/08
Introduce the Lego Mindstorm homework assignment

 

8/29/08
In class pseudo code & program example
In class demo: prime.c
Discuss homework assignment
9/3/08
Review of C functions: passing by value
In class example: example.c

9/5/08
Review of C functions: passing by value & pass by reference

9/8/08

Finish pass by reference example and start Review of Arrays: how arrays are stored in memory

9/10/08

Review of Arrays: how arrays are stored in memory, indexing, reading & printing array values, passing arrays to functions

9/12/08

Review of Arrays: how arrays are stored in memory, indexing, reading & printing array values, passing arrays to functions

PDF

9/15/08

Dynamic memory allocation

PDF
printArrayDynamic.c

9/17/08

Discussed writing functions that dynamically allocate an array in a function, read data values into the array, and then returned the array to the main program.

PDF
readArrayDynamic.c
9/19/08

Discussed passing pointers to arrays by reference

PDF
readarrayex4.c
readarrayex5.c
readarray2.c

9/22/08

Pointers
Discuss homework

9/24/08

Pointers
DDD debugger

9/26/08

Pointers
Principle of Least privilege & examples

9/29/08

Review of Strings


10/1/08
Review for exam
10/3/08
Exam I (during class time, room 101 BCSB)
10/6/08
Introduction to C structures
example: structex1.c

10/8/08
Introduction to C structures

10/10/08

Dynamic Data Structures
in class example: listex1.c

10/13/08
More on linked lists

10/15/08
Inserting an element from a singly linked list
10/17/08
Deleting an element from a singly linked list

10/20/08 Stacks, Queues, & Doubly lined lists

10/22/08 Introduction to trees
10/24/08 Recursive functions
Recursive tree traversal
in class example: factorial.c
10/27/08 Introduction to C++
in class example: example1.cpp
10/29/08 Introduction to C++
10/31/08 C++ Classes
in class example: time.cpp
11/3/08 C++ Classes
in class example: time2.cpp
11/5/08 C++ Classes
11/7/08 Exam II (during class time, room 101 BCSB)
11/10/08 C++ Classes Continued
11/12/08

C++ Classes Continued

PDF

11/14/08 C++ Classes Continued
11/17/08

C++ Classes Continued, Composition

11/19/08

C++ Classes Continued

Subtle problem when passing objects to methods

11/21/08 Inheritance
11/24 - 11/28/08 Thanksgiving Break  
12/1/08 Inheritance
12/3/08 Inheritance
12/5/08 Templates
12/8/08 Standard Template Library
12/10/08

Standard Template Library

PDF

12/12/08 Standard Template Library

PDF

12/19/08 Final Exam 9:45-11:45, (room TBD)