#include <iostream>
#include <set>
using namespace std;
void printSet (set<int> s)
{
for (set<int>::iterator it = s.begin(); it != s.end(); it ++)
{
cout << *it << " ";
}
cout << endl;
}
void test01 ()
{
set<int> s1;
s1.insert(1);
s1.insert(2);
s1.insert(3);
s1.insert(1);
s1.insert(4);
printSet(s1);
set<int>::iterator pos = s1.find(32);
if (pos != s1.end())
{
cout << "finded: " << *pos << endl;
}
else
{
cout << "not find" << endl;
}
int num = s1.count(3);
cout << "count of 3 is " << num << endl;
}
int main ()
{
test01();
return 0;
}