Example 1: Building a Gradebook (in C++)

SIGCSE 2006 Workshop Companion Web Site

Using C++ Instead of Java

The primary version of Example 1 is written in Java. However, you can accomplish the same end in C++ if you desire.

The C++ version of the files for Example 1 are available in the Gradebook-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.