For help, and can talk about this problem how to write a
CodePudding user response:
With the switch (ch) Case A: case B: case C: . break; Case D: case E: case F: . break;
CodePudding user response:
Define a 26 element array, char table [26]=,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7,7,8,8,8,9,9,9,9 {2} Determine the input string inside of each character c, if it is' A '-' Z ', between the table [c - 'A' + '0'] is the corresponding number of substitution