MOVED: c++ problem

This topic has been moved to Programming Questions.