Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
40881 | 老方 | 将字符串中的小写字母转换成大写字母 | C++ | Compile Error | 0 MS | 0 KB | 182 | 2024-02-18 10:49:39 |
#include<bits/stdc++.h> using namespace std; int main(){ char a[105]; getline(cin,a); for(int i=0;i<strlen(a);i++){ if(a[i]>='a'&&a[i]<='z')a[i]-=32; cout<<a[i]; } }