Example 2: Appointments (in C++)
SIGCSE 2006 Workshop Companion Web Site
Using C++ Instead of Java
The primary version of Example 2 is written in Java. However, you can accomplish the same end in C++ if you desire.
The C++ version of the files for Example 2 are available in the Appointment-cpp directory. Each class in the original Java version is replicated here.
The C++ version uses the CxxTest framework. We use a special CxxTest plug-in for Eclipse that provides the same kinds of tool support for automatically running tests. If you are interested, a prepackaged Eclipse distribution that we provide to students already includes this plug-in, or you can add it to your own Eclipse installation using our Eclipse update site.
You should also read through our Eclipse CxxTest tutorial to see how to use these tools.