Week 13

Lecture slides (Classes Part 3)

Rule of Three Review

Composite Class

19.1-main.cpp

19.1-stack.cpp

19.1-stack.h

Bad Dynamic Memory Class

19.2-badStack.cpp

19.2-badStack.h

19.2-main.cpp

Fixing the Bad Dynamic Memory Class

19.3-main.cpp

19.3-stack.cpp

19.3-stack.h

Copy and Swap Idiom

19.4-main.cpp

19.4-stack.cpp

19.4-stack.h

Growing the Stack

main.cpp

stack.cpp

stack.h

Templates and Classes

Templated Friends

main (composite).cpp

stack (composite).h

main (dynamic).cpp

stack (dynamic).h

Stack Using a Linked List

main (linked).cpp

stack (linked).h