Contact: aviboots(AT)netvision.net.il
41,656 questions
54,319 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}; printSet(st); return 0; } /* run: 2 3 5 6 8 9 */