CSCI 202: Object-Oriented Programming
Programs designed in class
- Working with pointers: pointers1.cpp
- More on pointers: pointers2.cpp
- Pointers to classes: pointers3.cpp
- Working with command line arguments:
- Dynamic memory allocation and release:
- Working with linked lists: llists1.cpp
- Using typedef keyword: llists2.cpp
- Linked list of strings: list.cpp
- Linked list as a class: listc.cpp
- Linked list class as a multifile project: listmf.h, listmf.cpp, listmain.cpp and Makefile
- Inserting tree nodes: tree1.cpp
- Traversing trees: tree_trav.cpp
- Inserting tree nodes reqursively: tree2.cpp
- Deleting tree nodes: tree3.cpp
- Member functions accessed with pointers:
- a problem
- a solution with virtual function
- Pure virtual functions: funcptr3.cpp
- Virtual destructors: virtdestr.cpp
- Dynamic cast:
- checking type of a class: dyncast1.cpp
- upcasting and downcasting: dyncast2.cpp
- the typeid operator: dyncast3.cpp