摘要: Syntax 1: Compares the string *this with the string str. int string::compare (const string& str) const Returns: 0 : if both strings are equal. A value 阅读全文
posted @ 2021-04-01 11:50 PiaYie 阅读(206) 评论(0) 推荐(0)
摘要: Syntax 1: Erases all characters in a string string& string ::erase () // CPP code to illustrate // erase() function #include <iostream> #include <stri 阅读全文
posted @ 2021-04-01 10:51 PiaYie 阅读(707) 评论(0) 推荐(0)