Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
48607 | zhangchunhong | 忽略大小写的字符串比较 | C++ | 编译错误 | 0 MS | 0 KB | 394 | 2024-06-09 17:31:13 |
//H题 #include<bits/stdc++.h> #include<stdio.h> #include<cstdio> #include<cstring> using namespace std; int main() { char a[85],b[85]; gets(a);//带有空格的输入串的方法 gets(b); //getline(cin,b); strlwr(a);//大写变小写 strupr 小写变大写 strlwr(b); if(strcmp(a,b)==0) cout<<"="; else if(strcmp(a,b)<0) cout<<"<"; else cout<<">"; return 0; }