Email Record: Problem solving with C++