MORSECODE C PROGRAM
hw2.h contains:
#include
#include
char morseToKey(char*,char* );
—————
morsecode.h contains:
#define MorseExclamation “-.-.–“
#define MorseDblQoute “.-..-.”
#define MorseHashtag “”
#define Morse$ “”
#define MorsePercent “”
#define MorseAmp “”
#define MorseSglQoute “.—-.”
#define MorseOParen “-.–.”
#define MorseCParen “-.–.-“
#define MorseStar “”
#define MorsePlus “”
#define MorseComma “–..–“
#define MorseDash “-….-“
#define MorsePeriod “.-.-.-“
#define MorseFSlash “”
#define Morse0 “—–“
#define Morse1 “.—-“
#define Morse2 “..—“
#define Morse3 “…–“
#define Morse4 “….-“
#define Morse5 “…..”
#define Morse6 “-….”
#define Morse7 “–…”
#define Morse8 “—..”
#define Morse9 “—-.”
#define MorseColon “—…”
#define MorseSemiColon “-.-.-.”
#define MorseLT “”
#define MorseEQ “-…-“
#define MorseGT “”
#define MorseQuestion “..–..”
#define MorseAt “.–.-.”
#define MorseA “.-“
#define MorseB “-…”
#define MorseC “-.-.”
#define MorseD “-..”
#define MorseE “.”
#define MorseF “..-.”
#define MorseG “–.”
#define MorseH “….”
#define MorseI “..”
#define MorseJ “.—“
#define MorseK “-.-“
#define MorseL “.-..”
#define MorseM “–“
#define MorseN “-.”
#define MorseO