Roulette: Translating Java to C++
This project is intended to give you practice programming in C++ by translating an existing program from Java into C++. The complete code to simulate a game of roulette as given in this previous assignment from CompSci 6 is given in Java. You should "translate" this code from Java into C++, but use proper C++ constructs rather than simply copying the Java syntax. For this part of the project, do not worry about the design of the program; instead you should concentrate on how to achieve similar functionality in C++.
Implementation Details
In some cases your code will differ from the Java code because you should use proper C++ idioms in your translation. For example, your program should not have a separate class that simply contains a main method because no such class is needed in C++ (although it may be in a separate file as in the Java version). Likewise, you may decide not to create a ConsoleReader class since it is composed only of static methods.
Additionally, although it is not strictly necessary, because this is such a small program and you are the only developer, each class that you create should have a header (.h) file and a code (.cpp) file.
Example Code
This code is also available to be snarfed within Eclipse.