解题思路:
注意事项:
参考代码:
#include <deque>
#include <algorithm>
#include <iostream>
#include <cstdlib>
#include <iterator>
#include <numeric>
#include <iomanip>
#include <sstream>
#include <string>
#include <cmath>
#include <string.h>
using namespace std;
int main()
{
string s1,s2;
cin>>s1>>s2;
if(s1<s2)
{
cout<<"-1"<<endl;
}
else if(s1==s2)
{
cout<<"0"<<endl;
}
else
{
cout<<"1"<<endl;
}
return 0;
}
0.0分
0 人评分
WU-整数平均值 (C++代码)浏览:1245 |
2005年春浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:648 |
打印十字图 (C语言代码)浏览:2710 |
sizeof的大作用 (C语言代码)浏览:1452 |
钟神赛车 (C语言代码)浏览:600 |
C语言程序设计教程(第三版)课后习题12.1 (C语言代码)浏览:647 |
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)浏览:401 |
C语言程序设计教程(第三版)课后习题1.6 (C语言代码)浏览:673 |
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)浏览:459 |
A+B for Input-Output Practice (II) (C语言代码)浏览:601 |