Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 C++ 中定义集合并将值插入其中?
使用 中的std::set类。<set>
std::set
<set>
std::set<int> s; // define a set of ints s.insert(1); // insert into a set