// B2_6 #pragma warning(disable : 4786) #include #include #include using namespace std; list getChars(const set &sc) { list temp; set::const_iterator it; for(it=sc.begin(); it!=sc.end(); it++) temp.push_front(*it); return temp; } void main() { char buffer[] = { 'a', 'e', 'i', 'o', 'u' }; set sc(&buffer[0],&buffer[5]); list lc = getChars(sc); list::iterator it; cout << "\n "; for(it=lc.begin(); it!=lc.end(); it++) cout << *it; cout << "\n\n"; }