三种方式

                        set<int> s = mm[ques];
			for (auto it = s.cbegin(); it != s.cend(); it++)
			{
				printf("%07d\n", *it);
			}
                      set<int>* s = &mm[ques];
			for (auto it = s—>cbegin(); it != s->cend(); it++)
			{
				printf("%07d\n", *it);
			}
                        set<int>& s = mm[ques];
			for (auto it = s—>cbegin(); it != s->cend(); it++)
			{
				printf("%07d\n", *it);
			}

这个没什么注意的,但是如果需要更改记得用引用。

内置类型排序方法

按照less函数排序

相关文章:

  • 2022-12-23
  • 2021-09-20
  • 2021-10-08
  • 2021-12-11
  • 2021-12-02
  • 2021-11-30
  • 2022-12-23
  • 2021-11-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
相关资源
相似解决方案