Contact: aviboots(AT)netvision.net.il
39,938 questions
51,875 answers
573 users
#include <iostream> #include <set> using namespace std; void printSet(set<int> st) { for (auto n: st) { cout << n << ' ' ; } } int main () { set<int> st = {6, 3, 8, 2, 9, 5}; st.erase(8); printSet(st); return 0; } /* run: 2 3 5 6 9 */