补全9月11日至13日课评:为13名学生创建请假文档,为5个班级创建总结文档
This commit is contained in:
23
C++代码/学习/未命名2.cpp
Normal file
23
C++代码/学习/未命名2.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#include <bits/stdc++.h>
|
||||
#define endl '\n'
|
||||
using namespace std;
|
||||
|
||||
int n;
|
||||
int arr[100100];
|
||||
|
||||
int main(){
|
||||
char c;
|
||||
cin >> c;
|
||||
|
||||
// 判断c是大写还是小写
|
||||
if(c >= 'a' && c <= 'z'){
|
||||
// 小写
|
||||
c = c - 'a' + 'A';
|
||||
} else {
|
||||
c = c - 'A' + 'a';
|
||||
}
|
||||
|
||||
cout << c;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user