C++ string库经常使用函数 字符串处理

实验C++ string库的经常使用函数 #include <bits/stdc++.h> using namespace std; int main() { string str="abc"; cout << str.back()<<endl;//读取末位字符串 cout << str.front()<<endl;//读取首位字符串 str.push_bac
相关文章
相关标签/搜索