Problem Solving With C++ door