C++ morse code | Computer Science homework help