//
string 变量间的比较 " 可以直接使用 == != > >= < <= "
//
#include<bits/stdc++.h>
using namespace std;
int main()
{
string s1="123";
string s2="abc";
printf("%d\n",s1<s2); // 输出: 1
return 0;
}
微信扫一扫
//
string 变量间的比较 " 可以直接使用 == != > >= < <= "
//
#include<bits/stdc++.h>
using namespace std;
int main()
{
string s1="123";
string s2="abc";
printf("%d\n",s1<s2); // 输出: 1
return 0;
}
相关推荐