C++ code that implements the look-and-say sequence: http://en.wikipedia.org/wiki/Look-and-say_sequence