Translate input to morse. Written in c++.