Notes
Slide Show
Outline
1
CS 211:
Introduction to Computer Programming II
  • Instructor: Brian M. Dennis
  • Teaching Assistants:
  • Tom Lechner, Bin Lin, Rachel Goldsborough
  • http://www.cs.northwestern.edu/~bmd/cs211/


2
Today’s Topics
  • Cheezo interp in depth
  • Templates if time
  • Reading
    • Chapter 12
3
Overloading
4
Overloading
5
Templating
6
Templating
7
Templating
8
Template Function Example
9
Template Function Example
10
Template Class Example
11
Template Class Example
12
Template Class Example
13
Template Class Example
14
 
15
 
16
 
17
 
18
 
19
 
20
 
21
 
22
 
23
That’s a Wrap
  • Takeaway
    • Class structure of Cheezo interp
    • Template mechanism in C++
  • Reading
    • Chapter 12