#include
#include
#include
#include
using namespace std;
typedef unordered_set my_set;
int main()
{
string tmp, in = "hello world friend hello world hello";
my_set us;
stringstream ss;
ss << in;<br> while (ss >> tmp) us.insert(tmp);
for (auto i : us) cout << i << " ";<br> system("pause");
}