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
相關文章
相關標籤/搜索