Home > Back-end >  A novice at solutions (type a character, determine whether to letters, if it is to convert the case,
A novice at solutions (type a character, determine whether to letters, if it is to convert the case,

Time:10-05

Enter a character, determine whether to letters, if it is to convert the case, otherwise output directly the characters

CodePudding user response:

According to the ASCII

CodePudding user response:

C language has a lot of character conversion, judgment of library functions,
https://blog.csdn.net/BadAyase/article/details/102383630
Refer to section 08

CodePudding user response:

QChar: : isLower () to determine whether to lowercase and transformation

CodePudding user response:

https://blog.csdn.net/qq_38181865/article/details/95440624 this big posts should be able to meet your demand

CodePudding user response:

Char judge (char c)
{
If (c<='Z' & amp; & C>='A')//uppercase and lowercase ANSII poor 32
C -=32;
Else if (c<='z' & amp; & C>
='a')C +=32;
Return c

}

CodePudding user response:

Ayanamilove you add and subtract write inside out
  • Related