仅将数字和字母字符串编码为dash 和 dot,并计算所占长度(以 dot 为例 ).
信息论编程作业1.原要求如下:
Write a computer program to encode a string of characters and numbers into the Morse code, and calculate the length of the resulting coded string. Any programming language (for example, C, C++, Matlab, Python, Java...) is OK.
1