标签:stream lse insert cin names code set turn else
#include<set> #include<iostream> using namespace std; int main() { char a, b, c; while (cin >> a && cin >> b && cin >> c) { set<char> ans; ans.insert(a); ans.insert(b); ans.insert(c); for (auto it = ans.begin();it != ans.end(); ++it) { if (it == ans.begin()) cout << *it; else cout <<" "<< *it; } cout << endl; } return 0; }
标签:stream lse insert cin names code set turn else
原文地址:https://www.cnblogs.com/Mered1th/p/10556033.html