Home > Back-end >  Small white for help!
Small white for help!

Time:06-06

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

CodePudding user response:

reference 1st floor proorck2019 response:
with the switch (ch)
Case A: case B: case C:
. break;
Case D: case E: case F:
. break;

Lost letters can use the switch. But if the letters and Numbers input together?

CodePudding user response:

reference qq_45931631 reply: 3/f
Quote: refer to 1st floor proorck2019 response:
with the switch (ch)
Case A: case B: case C:
. break;
Case D: case E: case F:
. break;

Lost letters can use the switch. But if the letters and Numbers input together?

This is a character, won't appear at the same time there are letters and Numbers,

CodePudding user response:

Proorck2019
reference 4 floor response:
Quote: refer to the third floor qq_45931631 response:
Quote: refer to 1st floor proorck2019 response:
with the switch (ch)
Case A: case B: case C:
. break;
Case D: case E: case F:
. break;

Lost letters can use the switch. But if the letters and Numbers input together?

This is processing a character, won't appear at the same time there are letters and Numbers,

But the requirements of the subject matter with Numbers and letters input ah

CodePudding user response:

I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related