解题思路:
注意事项:
参考代码:
#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 人评分
C语言训练-8除不尽的数 (C++代码)浏览:674 |
C语言程序设计教程(第三版)课后习题6.11 (C++代码)(有个库函数叫sqrt)浏览:977 |
C语言程序设计教程(第三版)课后习题12.6 (C语言代码)浏览:806 |
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)浏览:734 |
高精度加法 (C++代码)(大数加法)浏览:1002 |
Hello, world! (C语言代码)浏览:1304 |
C语言训练-素数问题 (C语言代码)浏览:1686 |
文科生的悲哀 (C语言代码)浏览:1510 |
A+B for Input-Output Practice (C语言代码)浏览:498 |
C语言程序设计教程(第三版)课后习题5.8 (C语言代码)浏览:1281 |