使用C++中的集合

Bah*_*reh 3 c++ set stdset

如何在C++中定义集合并将值插入其中?

mar*_*cog 16

使用std::set<set>.

std::set<int> s; // define a set of ints
s.insert(1);     // insert into a set
Run Code Online (Sandbox Code Playgroud)