anagram.cc: added C++ example