标签:class span ras style for nbsp col out ase
1 set<int>s1; 2 multiset<int>s2; 3 int x; 4 for(int i=1;i<=3;i++) 5 { 6 scanf("%d",&x); 7 s1.insert(x); 8 s2.insert(x); 9 } 10 for(auto it=s1.begin();it!=s1.end();it++){ 11 cout<<*it<<endl; 12 } 13 cout<<"frvbfeb\n"; 14 for(auto it=s2.begin();it!=s2.end();it++){ 15 cout<<*it<<endl; 16 } 17 18 /* 19 20 21 5 1 1 22 1 23 5 24 frvbfeb 25 1 26 1 27 5 28 29 */
insert
erase
clear
count
1 //遍历 2 set<int>s; 3 int main() 4 { 5 for(int i=1;i<=3;i++) s.insert(i); 6 for(auto x :s) printf("%d\n",x); 7 } 8 1 9 2 10 3
标签:class span ras style for nbsp col out ase
原文地址:https://www.cnblogs.com/tingtin/p/9973128.html