CS510 Programming Assignment 1 Notes Martian Adam Smyth martian@solgate.com awsmyth@cs.twsu.edu The following notes should explain some of the functions in the set.cpp file: operator|| Unions consist of items from either the first OR the second set, so I chose to override the logical-OR operator to perform the union function. operator|| takes a SetClass on either side, and returns a SetClass*. operator&& Intersections follow the same logic as Unions, and have the same arguments and return value. operator[] The indexing operator is overridden twice. The first form takes an integer, and operates in the same way as array indexing. set[3], for example, will return the 3rd item of set. The second form takes a char*, and will find the item with a key matching the argument. Thus set["555667777"] will return the item with a key "555667777". -- Notes on compiling: 'stutest' is the example implementation with students. 'settest' is a program for testing the functions of the set. To compile 'stutest', just use 'make'. To compile 'settest', use 'make settest'.