Dear All,

How can I write a program to perform this??

I pre-define the alpha-numerical character as :

char word[][2][40] = {
"A", "-",
"B", ".",
"C", "..-",
"Y", "--",
"O", ".-.",
"U", "-.-",
" ", " "
}

When I input the sentence > abc you (in lower case), the ouput will convert to > - . ..- -- .-. -.-

Can anyone help, please ~>_<~

Thanks
Wah