Email (record): C++ how to program