#include <string>
#include <set>
#include <iterator>
#include <iostream>
using namespace std;
int main()
{
set <string> strset;
strset.insert("cantaloupes");
strset.insert("grapes");
strset.insert("apple");
strset.insert("orange");
strset.insert("banana");
strset.insert("grapes");
copy(strset.begin(), strset.end(), ostream_iterator<string>(cout, " "));
cout << endl;
return 0;
}
06-04
11-26
06-21
06-21
06-21
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交