c++
Last updated
void assign(const_iterator first,const_iterator last);
// vector.assign(que.begin(), que.end());
void assign(size_type n,const T& x = T());
// vector.assign(3, 2.1);// 3个2.1iterator begin();
const_iterator begin();iterator end();
const_iterator end();reference front();
const_reference front();reference back();
const_reference back();list<int>::iterator current = numbers.begin();numbers.erase(current);#include <algorithm>
using namespace std;reverse(s.begin(), s.end());string str_new = str.substr(0, length);const char* cstr = str.c_str();string to_string (int val);
string to_string (long val);
string to_string (long long val);
string to_string (unsigned val);
string to_string (unsigned long val);
string to_string (unsigned long long val);
string to_string (float val);
string to_string (double val);
string to_string (long double val);#include <iostream>
using namespace std;
string num1 = string("111");
string s;
s.push_back(1 + '0');