解题思路:
注意事项:
参考代码:
#include<iostream> #include<string> using namespace std; int main() { string str1,str2; cin>>str1>>str2; int ans=0; if(str1>str2) ans=1; else if(str1<str2) ans=-1; else ans=0; cout<<ans<<endl; return 0; }
0.0分
0 人评分
点我有惊喜!你懂得!浏览:1674 |
C语言程序设计教程(第三版)课后习题6.9 (C语言代码)浏览:728 |
点我有惊喜!你懂得!浏览:1115 |
C语言程序设计教程(第三版)课后习题6.7 (C语言代码)浏览:664 |
A+B for Input-Output Practice (C++代码)浏览:613 |
这可能是一个假的冒泡法浏览:1035 |
C语言训练-求1+2!+3!+...+N!的和 (C语言代码)万恶的long long浏览:891 |
sizeof的大作用 (C语言代码)浏览:1073 |
演讲大赛评分 (C语言代码)浏览:1647 |
2006年春浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:684 |