Cross posted to the cpp community
Nov. 20th, 2003 08:19 pmI have to write a program that codes or decodes morse code (depending on which choice the user wants). I'm having some issues with the morse to alphanumeric conversion. The program I wrote reads the code from a file and then spits out the alphanumeric equivalent on the screen. It compiles great, but when I try to run the morse code through it, it prints nothing. So here's my question: why isn't the program reading the data in properly?
This is the code I want to read in:
.- -... -.-.
.---- ..--- ...--
.... . .-.. .-.. ---
.--- . ..-. ..-.
Each individual letter is separated by a space.
( Here's the C++ code )
This is the code I want to read in:
.- -... -.-.
.---- ..--- ...--
.... . .-.. .-.. ---
.--- . ..-. ..-.
Each individual letter is separated by a space.
( Here's the C++ code )