next up previous contents
Next: ECHO Server and Client Up: Familiarisation with the Tools Previous: Familiarisation with the Tools   Contents

Addressbook

This program has a limited user interface, but it is sufficient for the purpose of exercising each of the methods of the AddressBook class.

The 'v' option displays the entire addressbook, including those fields normally hidden from the user (i.e. the date the records was last updated and its visible(o)/deleted(d) status). Deleted records are also still displayed in this view. A sample run through the program showing a record being updated is shown in appendix A.1.1.

Writing this program was extremely helpful in highlighting the differences between C++ and Java. One particularly problematic area was exceptions. Although unlike Java, C++ does not require a function to declare all the exceptions it throws in its signature, if an undeclared exception is thrown then the code terminates rather than unwinding the stack.



Nathan Dimmock 2001-06-20