#include <iostream> #include <set> #include <string> int main() { char a[] = "CADEBA"; std::set<char> s(a, a + sizeof(a) - 1); std::cout<<std::string(s.begin(),s.end())<<std::endl; }
Login in to like
Login in to comment
or Read more about C++ Quizzes
Login in to like
Login in to comment