How to print the element of the set in C++

 for(auto i = st.begin() ; i!= st.end() ;++i){

        cout<< *i<<",";

 }

 take the starting pointer of the set and the ending pointer of the  set 

Comments

Popular posts from this blog