rt,蒟蒻以前从来没有关注过这件事情,都是默认数字小的就是字典序小的
但是,经过自行bd后,发现不是这样
比如,1234567的字典序比23456要小,简单一点 11 的字典序要比2小
写了程序验证
# include <cstdio>
# include <string>
using namespace std;
int main()
{
string sta,stb;
sta = "11";
stb = "2";
if (sta < stb) printf("right");
else printf("no");
return 0;
}