string的比较

bool operator==(const string &s1,const string &s2)const;//比较两个字符串是否相等
运算符”>”,”<",">=”,”<=","!="均被重载用于字符串的比较; int compare(const string &s) const;//比较当前字符串和s的大小 int compare(int pos, int n,const string &s)const;//比较当前字符串从pos开始的n个字符组成的字符串与s的大小