迭代器iterator正向遍历set集合元素 #include using namespace std; int main(){ sets; // write your code here...... for (int i = 0; i < 5; i++) { int temp = 0; cin >> temp; //插入元素在set集合中 s.insert(temp); } //开始遍历 for (set::iterator it = s.begin();...