undefined

Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

Sets

#include <set>
#include <string>
#include <iostream>
using namespace std;
int main() {
set<string> s;
s.insert({"one"});
s.insert({"two"});
s.insert({"three"});
s.insert({"one"});
for (const auto &x : s) {
cout << x << ' ';
}
cout << endl;
return 0;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content