April 1st, 2003, 07:14 PM
I need to write a program using C, that will translate english letters(words) to their appropriate morse codes. Could you please help me.
April 1st, 2003, 07:20 PM
The first step is to look up the morse code characters. I found this website real quick using google.com:
Then you have to look into parsing a character string. So, you should look up the ASCII code, next.
April 1st, 2003, 08:15 PM
Or you can cheat using system() to call morse, which comes with many unix systems ;).
sprintf(cmd, "morse -s %d", words);