Here is my code so far. I will bold the member function I need help with. If anyone knows what to write it would be greatly appreciated. Here are the instructions.
We will be creating the program which takes a file containing the message in morse code and converts it to the alphabetic message. Your main program will use the below class to input a morse code message from a file. Since every codeword is separated by a space, you can use input the message using cin, and store each codeword as a separate string in a vector. Then submit the vector to the class function decode, and it will return the decoded message. When finished, output the string. You can download the functions morsecode and alphacode. Use your program to decode the messages message 1 and message 2.
I would suggest using a map of morse code "characters" to alphabetical letters. Then you can simply input whatever set of dots/dashes you have and if you find a match, put in that letter. Otherwise they have an invalid letter.