|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
I need to write a program using C, that will translate english letters(words) to their appropriate morse codes. Could you please help me.
|
|
#2
|
||||
|
||||
|
The first step is to look up the morse code characters. I found this website real quick using google.com:
http://www.babbage.demon.co.uk/morseabc.html Then you have to look into parsing a character string. So, you should look up the ASCII code, next.
__________________
Jason Doucette / Xona.com™ - Programming Windows Errata Addendum "Discussion is an exchange of knowledge; argument is an exchange of ignorance." |
|
#3
|
||||
|
||||
|
Or you can cheat using system() to call morse, which comes with many unix systems
.sprintf(cmd, "morse -s %d", words); system(cmd); |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > Morse Code |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|