Lecture 10: Dynamic Memory Allocation
Thursday 03/01, 2007
[Up]
[Previous Lecture]
[Next Lecture]
Assigned Reading: 10.1, 10.2
Slides As Shown:
Topics Covered:
- Revisited two issiues in Project 1 (see Announcements slides above):
- How to handle end of file issues.
- What if we wanted to implement "Lazy Evaluation" for
medianRating? We'd have to use the mutable keyword.
- Continued discussion of operator overloading (see slides),
including:
- "Outward" type conversion.
- overloading input and output operators.
- Discussed new, delete and destructors
for dynamic memory allocation.
- Looked at various ways to define 2-dimensional arrays.