Well that doesn't exactly give an answer to how you are meant to map ascii to morse but I have an idea for that. But I'm still just learning c++ myself and I've never been a great coder so although I could do this, it would take me a long time and I just don't have it.
For the mapping...