I made them write a Fraction object though.
There was much consternation in class to learn that 99/100 == 0. (due to int truncation). So I wrote an Int class that faithfully mimics a builtin int, but operator/ returns a Fraction. They have to write the fraction (retains numerator and denominator). I helped them out by writing the reduce method and ctors.
Good ADT and type management exercise. I gave them a test program that has to work that exercises all sorts of type conversions. They'll be in ambiguity hell for hours I'll bet. Writing a new type is freakin hard (and generally not quite possible in C++ without making some compromises).