1个回答
展开全部
#include <set>
#include <iostream>
using namespace std;
int main(){
typedef set<int> set_t;
set_t s;
for (int i = 0; i != 10; ++i) s.insert(i);
for (set_t::const_iterator p = s.cbegin(); p != s.cend(); ++p)
cout << *p << " ";
cout << "\n";
return 0;
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询