______________________________________________
vector<int>a;
vector<int>a(100);
vector<int>a(100,1);
int main(){
a.push_back(100);
int size = a.size();
bool isEmpty = a.empty();
a.insert(a.begin()+i , k);
a.pop_back();
a.earse(a.begin()+i,a.begin()+j);
a.earse(a.begin()+2);
a.resize(10);
a.clear();
reverse(a.begin(),a.end());
sort(a.begin(),a.end());
return 0;
}
______________________________________________
int main(){
stack<int>s;
s.push(1);
s.top();
s.pop();
s.size();
s.empty();
}
______________________________________________
int main(){
queue<int>q;
que.push(item);
q.front();
q.pop();
q.back();
q.size();q.empty();
return 0;
}
priority_queue<int>q;
______________________________________________
int main(){
set<int>a;
a.insert(item);
a.erase(item);
a.find(k);
a.lower_bound(k);
a.upper_bound(k);
return 0;
}
______________________________________________
int main(){
map<string,int>age;
age["xbb"] = 3;
cout <<age["xbb"];
return 0;
}
______________________________________________
sort(a,a+n,greater());
结构体排序...
next_permutation(a,a+n);
转载请注明原文地址:https://ipadbbs.8miu.com/read-2853.html