OLDER LECTURE MATERIAL

 

Fall 2003

Lecture 1
Course Overview
Command-line parameters
argc and argv CPP
Lecture 2
Pointers
Menu-system design (pass by reference & arrays)
CPP

Completed CPP

Lecture 3
Intro to Recursion PPT
CPP
Lecture 4
Linked Lists & Advanced Recursion
PPT on Dynamic Data Structures
Java Dynamic Data Structures PPT
Linked List Traverse & Insert CPP

Other Linked Lists Implementations (as classes) CPP

Lecture 5
Stacks & Queues
PowerPoint Lecture
Lecture 6
Trees & Graphs
Graphs, Minimum Spanning Trees
Lecture 7
Vectors
Intro to Vectors CPP

Vector of Cards & Shuffling CPP

Lecture 8
Stack & Queue
PROJECT WORK
Lecture 9
Map & Multimap
Maps/Multimaps Introduction
Maps/Multimaps w/ File I/O
Items.txt
Customers.txt
Orders.txt

sample for time()

Lecture 10
Inheritance and Overloading
 
Lecture 11 PROJECT WORK
Lecture 12
Polymorphism and Abstract Classes
 
Lecture 13 PROJECT WORK
Lecture 14 Review for Midterm
Lecture 15 MIDTERM EXAM
Lecture 16
Exception Handling
Solution to Binary Search Tree (HW5)

Sample C# Exception Handling

Sample Java Exception Handling & ImaginaryException

Lecture 17
Threads
Sockets
sockets.cs

threads.cs
Java Threads - ThreadedJavaDog

Lecture 18 PROJECT WORK
Lecture 19 PROJECT WORK
Lecture 20
Boxing & Use of Ref
In-class demos/discussion

Use of Ref zipped files
C# code (also in the zip file above)
Boxing zipped files
C# code (also in the zip file above)

Lecture 21
Collections & Arrays
C# Example (zipped project)

Arrays zipped files
C# code (also in the zip file above)
2D Arrays zipped files
C# code (also in the zip file above)
Stack zipped files
C# code (also in the zip file above)
Queue zipped files
C# code (also in the zip file above)
Hashtable zipped files
C# code (also in the zip file above)

Lecture 22 PROJECT WORK
Lecture 23 Validating GUIs (PPT)
ErrorProvider zipped files
C# code (also in the zip file above)
Lecture 24 Creating GUI Controls (PPT)
Yahtzee Executable
Yahtzee zipped files
HighlightedDie C# code (also in the zip file above)
Lecture 25 Data Binding PPT
DB Applications in C#

Loan Officer code and DB (.zip file)

Lecture 26 Data Binding PPT
DB Applications in C#

Loan Officer code and DB (.zip file)

Lecture 27 - 28 PROJECT WORK
Lecture 29 REVIEW FOR FINAL EXAM
Lecture 30 PROJECT DEMOS - Project 7 (Blackjack)

Summer 2003

Lecture 1
Histogram of Grade Distribution
CPP

Another example

Lecture 2
Recursion
 
Lecture 3
Linked Lists & Review
CPP
Lecture 4
Inheritance
Function Overloading
Operator Overloading
Classes as members of Classes
Friend Functions
File Input
Dynamic array allocation (of classes)
person.h
person.cpp
student.h
student.cpp
professor.h
professor.cpp
driver.cpp
university.h
university.cpp
university.txt
Lecture 5
Network-based programming in C#
sockets.cs
Lecture 6
Threads (producer & consumer) in C#
threads.cs
Lecture 7
Data Binding PPT
DB Applications in C#
.NET 2003 Loan Officer code and DB (.zip file)

.NET 2002 (older) code

Lecture 8
Boxing and Collection classes in C#
Boxing & Use of Ref PPT
Collections & Arrays PPT

C# example from class

Use of Ref zipped files
C# code (also in the zip file above)
Boxing zipped files
C# code (also in the zip file above)
Arrays zipped files
C# code (also in the zip file above)
2D Arrays zipped files
C# code (also in the zip file above)
Stack zipped files
C# code (also in the zip file above)
Queue zipped files
C# code (also in the zip file above)
Hashtable zipped files
C# code (also in the zip file above)

Lecture 9
Creating and Validating C# GUI Controls
Validating GUIs (PPT from lecture)
Creating GUI Controls (PPT from lecture)

ErrorProvider zipped files
C# code (also in the zip file above)
Yahtzee Executable
Yahtzee zipped files
HighlightedDie C# code (also in the zip file above)

Additional Example from Class Today

Spring 2003

Lecture 1 & 2
Histogram of Grade Distribution
CPP
Lecture 3
Pointers (malloc, free, new, delete)
CPP
Lecture 4
University class (constructor & destructor)
Main CPP
university.h
university.cpp
Lecture 5
Function Overloading
Operator Overloading
Classes as members of Classes
Friend Functions
File Input
Dynamic array allocation (of classes)
driver.cpp
university.h
university.cpp
student.h
student.cpp
professor.h
professor.cpp
university.txt

Dynamic use of University (alternate main function)

Lecture 6
Inheritance
person.h
person.cpp
student.h
student.cpp
professor.h
professor.cpp

driver.cpp, university.h, university.cpp, university.txt remain the same from lecture 5

Lecture 7 PROJECT WORK DAY
Lecture 8
Polymorphism
Virtual Functions
person.h
student.h
student.cpp
professor.h
professor.cpp
university.h
university.cpp
driver.cpp

person.cpp & university.txt remain the same from above

An example of a polymorphic array of int & float objects

Lecture 9 REVIEW FOR TEST
Lecture 10 TEST 1
Lecture 11
Recursion
main.cpp
Lecture 12 PROJECT WORK DAY
Lecture 13 PROJECT WORK DAY
Lecture 14
Dynamic Data Structures
Linked Lists
Stack
Queue
Trees
PowerPoint Lecture
Lecture 15
Implementing a Linked List
main.cpp
Lecture 16 PROJECT WORK DAY
Lecture 17
STL - Vector & Interator
main.cpp
Lecture 18 REVIEW
Lecture 19 TEST 2
Lecture 20 PROJECT WORK DAY
Lecture 21
STL - Map & Multimap
Maps/Multimaps Introduction
Maps/Multimaps w/ File I/O
Items.txt
Customers.txt
Orders.txt

Sample solutions for test 2

Lecture 22
Intro to C#, Random in C#
zipped files
C# code (also in the zip file above)
Lecture 23
Continuation of the C# Yahzee game
zipped files
C# code (also in the zip file above)

The obfuscated C "12 Days of Christmas" code

Lecture 24
Boxing
Use of Ref
Boxing & Use of Ref PPT

Use of Ref zipped files
C# code (also in the zip file above)

Boxing zipped files
C# code (also in the zip file above)

Lecture 25
Collections & Arrays
Collections & Arrays PPT

Arrays zipped files
C# code (also in the zip file above)

2D Arrays zipped files
C# code (also in the zip file above)

Stack zipped files
C# code (also in the zip file above)

Queue zipped files
C# code (also in the zip file above)

Hashtable zipped files
C# code (also in the zip file above)

Lecture 26
Validating GUIs (PPT from lecture)
ErrorProvider zipped files
C# code (also in the zip file above)
Lecture 27
Creating GUI Controls (PPT from lecture)
Yahtzee Executable
Yahtzee zipped files
HighlightedDie C# code (also in the zip file above)
Lecture 28
C# Data Binding (PPT from lecture)
multiple samples (zip file)
Lecture 29 PROJECT WORK DAY
Lecture 30 Final Project Demos

Summer 2002

Lecture 1
Loops & Argv/Argc
Iteration, Recursion
String class (+ =)
CPP
Lecture 2
malloc, free, pointers, arrays
CPP
Lecture 3
Class review - public/private/etc.
See Lecture 4
Lecture 4
Const attributes and functions
Dynamic allocation with new and malloc
driver.cpp
university.h
university.cpp
Lecture 5
Function Overloading
Operator Overloading
Classes as members of Classes
Friend Functions
File Input
Dynamic array allocation (of classes)
driver.cpp
university.h
university.cpp
student.h
student.cpp
professor.h
professor.cpp
university.txt
Lecture 6 STUDENT WORK DAY
Lecture 7 Review
Lecture 8 Test 1
Lecture 9
Inheritance
Public, Protected, Private
person.h
person.cpp
student.h
student.cpp
professor.h
professor.cpp

driver.cpp, university.h, university.cpp, university.txt remain the same from lecture 5

Lecture 10
Virtual Functions
Polymorphism
person.h
student.h
student.cpp
professor.h
professor.cpp
university.h
university.cpp
driver.cpp

person.cpp & university.txt remain the same from above

An example of a polymorphic array of int & float objects

Lecture 11
Templates & Linked Lists
main.cpp
Lecture 12
STL - Vectors
STL - Maps/Multimaps
Maps/Multimaps & File I/O
Vectors

Maps/Multimaps Introduction

Maps/Multimaps w/ File I/O
Items.txt
Customers.txt
Orders.txt

Lecture 13 STUDENT WORK DAY
Lecture 14
Review
Vectors & Card Class
Lecture 15 Test 2
Lecture 16
Introduction to C#
Form1.cs
AboutForm.cs

all project files (zipped)

Lecture 17
Tag, ArrayList, Public/Private, Properties, & Classes
Form1.cs
AboutForm.cs
Student.cs

all project files (zipped)

Lecture 18 STUDENT WORK DAY
Lecture 19 STUDENT WORK DAY

 

Spring 2002

Lecture 1
Loops & Argv/Argc
CPP
Lecture 2
Iteration & Recursion
CPP
Lecture 3
Malloc & Free
Pointers & Arrays
CPP
Lecture 4 & 5
Classes & Default Parameters
Car.h
Car.cpp
Driver CPP
Lecture 6
Member Objects
Student.h
Student.cpp
Driver CPP
Lecture 7 (continues Lecture 6)
Friend Functions
Student.h
Student.cpp
Driver CPP
Lecture 8
Operator Overloading
main.cpp
Lecture 9 TEST 1
Lecture 10
Inheritance
main.cpp
Lecture 11
Dynamic Structures - Linked List
Linked List Class
Lecture 12 in class discussion of polymorphism and templates
Lecture 13 Stack
Queue
Lecture 14
Binary Trees
node.h
node.cpp
tree.h
tree.cpp
main.cpp
Lecture 15
Exceptions
main.cpp
Lecture 16
Introduction to STL (Vectors)
main.cpp
Lecture 17 TEST 2
Lecture 18
STL (map)
main.cpp
Lecture 19
STL (map, multimap), Sequential File I/O, Function Overloading
main.cpp
Items.txt
Customers.txt
Orders.txt
Lecture 20 PROJECT WORK
Lecture 21 PROJECT WORK
Lecture 22
Intro to MFC - CFrameWnd, CWinApp, CStatic
welcome.cpp
menu.rc
resource.h
Brief lifecycle notes
Lecture 23 welcome.cpp
(all other files remain the same from lecture 22)
Lecture 24
CDialog
SimpleDialog.h
SimpleDialog.cpp
resource.h
SimpleDialog.rc
Lecture 25
CDialog, Accessing Internal, non-visual Data, DoModal return types
main_dialog.rc
main_dialog.cpp
resource.h
Lecture 26
ListBox & ComboBox
main_dialog.rc
main_diaplog.cpp
resource.h
Lecture 27 PROJECT WORK
Lecture 28 PROJECT WORK
Lecture 29 Review & Demo HW6
Lecture 30 TAKE HOME EXAM
FINAL EXAM DUE - TUESDAY, APRIL 30th, 3:00PM

Spring 2001

Lecture 2

CPP

EXE
(remember to specify command line arguments)

Lecture 3

CPP

EXE

Lecture 4

Car.h
Car.cpp
Lecture4.cpp
StdAfx.h

EXE

Lecture 5 Car.h
Car.cpp
Lecture5.cpp
StdAfx.h
EXE
Lecture 6 Car.h (unchanged from lecture 5)
Car.cpp (unchanged from lecture 5)
Student.h
Student.cpp
Lecture6.cpp
StdAfx.h
EXE

Lecture 7

   

Lecture 8

Lecture8.cpp

  EXE

Lecture 9

TEST 1 - No links

Lecture 10

main.cpp

EXE

Lecture 11

main.cpp

EXE

Lecture 12

main.cpp

EXE

Lecture 13

main.cpp

EXE

Lecture 14

See Deitel Polymorphism examples

Lecture 15

main.cpp

EXE

Lecture 16

main.cpp

EXE

Lecture 17

TEST 2 - No links

Lecture 18

main.cpp

EXE

Lecture 19

main.cpp

EXE

Lecture 20

main.h
main.cpp

EXE

Lecture 21

Project work - no notes

Lecture 22 main.cpp
main.h

SimpleDialog.h
SimpleDialog.cpp
resource.h
SimpleDialog.rc

EXE for FrameWnd example

Lecture 23

SimpleDialog.h
SimpleDialog.cpp
resource.h
SimpleDialog.rc

EXE

Lecture 24

main_dialog.cpp
resource.h
main_dialog.rc

  EXE

Lecture 25

   

Lecture 26

   

Lecture 27

 

 

Lecture 28

TEST 3 - no notes

Lecture 29

Special Topics

Lecture 30

Review & Student presentations