摘要: 六、string字符串比较 1、功能描述:字符串之间的比较 2、比较方式:字符串比较是按字符的ASCII码进行对比 = 返回0 > 返回1 < 返回-1 3、函数原型: (1)int compare(const string &s)const; //与字符串s比较 (2)int compare(co 阅读全文
posted @ 2023-05-12 18:30 连师傅只会helloword 阅读(9) 评论(0) 推荐(0) 编辑