CPS 6, Ramm - Spring 2000 - 4/17/00, #35
- Announce
- Test ...
- Extra Credit Assignment ...
12. Dynamic Data, List, & Class Templates
- Pointer uses (conceptual)
- Sort list by more than one key
- The importance of diagrams
- Pointers as Parameters
- swap using reference parameters
- swap using pointers (C style)
- The
new Operator
- Simple Examples
- The Selector Operator
->
- Used to access members of structs or classes
- Another Example
- Implementing a Tag Sort
- Use a vector of pointers
- Modify Selection Sort
- Linked Lists
- Pointer Diagrams
- Conceptual
- The Null Pointer
- 0
- NULL
- Pointer Comaparisons
- Which of the following are meaningful?
- <, <=, =, !=, >=. >
- The Five Ways to Assign a Value to a Pointer
- Assign value generated by
new operator
- Assign value generated by the address of (
&) operator
- Assign value from another pointer
- Assign value returned by a function
- Assign the special value 0 or
NULL