CSCI 202: Object-Oriented Programming
Programs designed in class
- Templates in C++
- A simple function template: template1.cpp
- Function template with two classes: template2.cpp
- Linked List class template: templist1.cpp
- The above program with the method definitions outside the class: templist2.cpp
- Stack based on a Linked List: tempstack.cpp
- Exception handling
- Catching a standard dynamic memory allocation exception: tempstack2.cpp
- Throwing and catching a custom exception: stackex1.cpp
- Throwing and catching multiple custom exceptions: stackex2.cpp
- Passing parameters to an exception class: stackex3.cpp
- Stand-alone exception class: stackex4.cpp