#include
#include
#include
using namespace std;
int main()
{
set
vector
set
set
set
for(int i = 1 ; i <= 10 ; ++i)
{
s.insert(i);
vs.push_back(i);
}
first = s.begin();
*first = 5;
cout<<"通过迭代器修改数值*first = 5后s 中值是 :"<
{
cout<<*iter<<" ";
}
cout<
vector
*vfirst = 5;
cout<<"通过迭代器修改数值*vfirst = 5后vs 中的第一个元素是 :"<
{
cout<<*vfirst<<" ";
}
cout<