解题思路:
注意事项:
参考代码:
#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 人评分
人见人爱A+B (C语言代码)浏览:858 |
母牛的故事 (C语言代码)浏览:774 |
C语言程序设计教程(第三版)课后习题8.9 (C语言代码) 用函数传参的方法浏览:4114 |
矩形面积交 (Java代码)浏览:1275 |
C语言程序设计教程(第三版)课后习题10.5 (C语言代码)浏览:563 |
【亲和数】 (C语言代码)浏览:893 |
C语言程序设计教程(第三版)课后习题8.8 (C语言代码)浏览:574 |
蛇行矩阵 (C语言代码)浏览:599 |
C语言训练-自由落体问题 (C语言代码)浏览:645 |
C语言程序设计教程(第三版)课后习题5.6 (C语言代码)浏览:572 |