Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
66318 | hu | 将字符串中的小写字母转换成大写字母 | C++ | Compile Error | 0 MS | 0 KB | 276 | 2025-06-16 16:32:43 |
#include<iostream> #include <cstring> using namespace std; int main(){ char a[101]; char b[101]; fgets(a,100,stdin); for(int i = 0; a[i] != '\0';i++) { if(a[i] == '\n') { a[i] = '\0'; } } strupr(a); puts(a); return 0; }