//小写转大写
#include <iostream>
using namespace std;
int main(){
char a = 'c';
char b = a&(0b11011111);
cout<<b<<endl;
}
//大写转小写
#include <iostream>
using namespace std;
int main(){
char a = 'A';
char b = a | (0b00100000);
cout<<b<<endl;
}
大写字母与小写字母的 ASCII 码之间的关系:
'a':61h,即01100001
'A':41h,即01000001