// 11 string字符串的比较#include#include using namespace std;int main(){ string s1 = "155"; string s2 = "52"; char c[] = "34"; int i, j, k, l, m, n; i = s1.compare(s2); //compare比较的事字符而不是数字 //compare 将s1与s2比较,返回0为相等,1为s1大于s2,-1为s1小于s2; cout< <<":"< <<"="< <